at master 824 B view raw
1# GPaste. 2{ 3 config, 4 lib, 5 pkgs, 6 ... 7}: 8 9{ 10 11 ###### interface 12 options = { 13 programs.gpaste = { 14 enable = lib.mkOption { 15 type = lib.types.bool; 16 default = false; 17 description = '' 18 Whether to enable GPaste, a clipboard manager. 19 ''; 20 }; 21 }; 22 }; 23 24 ###### implementation 25 config = lib.mkIf config.programs.gpaste.enable { 26 environment.systemPackages = [ pkgs.gpaste ]; 27 services.dbus.packages = [ pkgs.gpaste ]; 28 systemd.packages = [ pkgs.gpaste ]; 29 # gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas. 30 services.desktopManager.gnome.sessionPath = [ pkgs.gpaste ]; 31 # gpaste-reloaded applet doesn't work without the typelib 32 services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gpaste ]; 33 }; 34}