diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-09-03 16:27:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-03 16:27:30 +0100 |
commit | 4391330033f6e4c3a840ed463a82c0ad9bbdc380 (patch) | |
tree | 63cd6fc7681131b59232a779adbc33a5d106fa4e /nixos/modules/services | |
parent | 49cda48b8390c44f9b63435ddd8572d48c85f3d3 (diff) | |
parent | c2881983fb52c50d8ddb1187458b519a058cc2ab (diff) | |
download | nixlib-4391330033f6e4c3a840ed463a82c0ad9bbdc380.tar nixlib-4391330033f6e4c3a840ed463a82c0ad9bbdc380.tar.gz nixlib-4391330033f6e4c3a840ed463a82c0ad9bbdc380.tar.bz2 nixlib-4391330033f6e4c3a840ed463a82c0ad9bbdc380.tar.lz nixlib-4391330033f6e4c3a840ed463a82c0ad9bbdc380.tar.xz nixlib-4391330033f6e4c3a840ed463a82c0ad9bbdc380.tar.zst nixlib-4391330033f6e4c3a840ed463a82c0ad9bbdc380.zip |
Merge pull request #28893 from jtojnar/gpaste-service
gnome3.gpaste: Add GPaste service
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/desktops/gnome3/gpaste.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/gnome3/gpaste.nix b/nixos/modules/services/desktops/gnome3/gpaste.nix new file mode 100644 index 000000000000..0954cd2713aa --- /dev/null +++ b/nixos/modules/services/desktops/gnome3/gpaste.nix @@ -0,0 +1,30 @@ +# GPaste daemon. +{ config, lib, ... }: + +with lib; + +let + gnome3 = config.environment.gnome3.packageSet; +in +{ + ###### interface + options = { + services.gnome3.gpaste = { + enable = mkOption { + type = types.bool; + default = false; + description = '' + Whether to enable GPaste, a clipboard manager. + ''; + }; + }; + }; + + ###### implementation + config = mkIf config.services.gnome3.gpaste.enable { + environment.systemPackages = [ gnome3.gpaste ]; + services.dbus.packages = [ gnome3.gpaste ]; + services.xserver.desktopManager.gnome3.sessionPath = [ gnome3.gpaste ]; + systemd.packages = [ gnome3.gpaste ]; + }; +} |