summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/desktop.nix
blob: c2f854d470be50286ee23a387af3de751a216930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{pkgs, ... }: {
  home-manager.users.makefu = {
    programs.browserpass = { browsers = [ "firefox" ] ; enable = true; };
    services.network-manager-applet.enable = true;
    services.blueman-applet.enable = true;
    services.pasystray.enable = true;

  systemd.user.services.network-manager-applet.Service.Environment = ''
        XDG_DATA_DIRS=/etc/profiles/per-user/makefu/share GDK_PIXBUF_MODULE_FILE=${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
      '';
  systemd.user.services.clipit = {
    Unit = {
      Description = "clipboard manager";
      After = [ "graphical-session-pre.target" ];
      PartOf = [ "graphical-session.target" ];
    };

    Install = {
      WantedBy = [ "graphical-session.target" ];
    };

    Service = {
      Environment = ''
        XDG_DATA_DIRS=/etc/profiles/per-user/makefu/share GDK_PIXBUF_MODULE_FILE=${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
      '';
      ExecStart = "${pkgs.clipit}/bin/clipit";
      Restart = "on-abort";
    };
  };
  };
}