diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-07-21 06:01:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 06:01:11 +0000 |
commit | 986ce428970ee5193ce5823ba8399e9e81df9942 (patch) | |
tree | 0816f394ff4262c55fe2315445a01277e0b05156 /nixos/modules | |
parent | 63c505b7f25f4c3582f1730f7577578ac493e5a0 (diff) | |
parent | 4711f4b61ef436425252fb74a1f81f95bcd601b3 (diff) | |
download | nixpkgs-986ce428970ee5193ce5823ba8399e9e81df9942.tar nixpkgs-986ce428970ee5193ce5823ba8399e9e81df9942.tar.gz nixpkgs-986ce428970ee5193ce5823ba8399e9e81df9942.tar.bz2 nixpkgs-986ce428970ee5193ce5823ba8399e9e81df9942.tar.lz nixpkgs-986ce428970ee5193ce5823ba8399e9e81df9942.tar.xz nixpkgs-986ce428970ee5193ce5823ba8399e9e81df9942.tar.zst nixpkgs-986ce428970ee5193ce5823ba8399e9e81df9942.zip |
Merge master into staging-next
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/misc/clipcat.nix | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 13463359a66..4d1700ed99a 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -475,6 +475,7 @@ ./services/misc/calibre-server.nix ./services/misc/cfdyndns.nix ./services/misc/clipmenu.nix + ./services/misc/clipcat.nix ./services/misc/cpuminer-cryptonight.nix ./services/misc/cgminer.nix ./services/misc/confd.nix diff --git a/nixos/modules/services/misc/clipcat.nix b/nixos/modules/services/misc/clipcat.nix new file mode 100644 index 00000000000..128bb9a89d6 --- /dev/null +++ b/nixos/modules/services/misc/clipcat.nix @@ -0,0 +1,31 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.clipcat; +in { + + options.services.clipcat= { + enable = mkEnableOption "Clipcat clipboard daemon"; + + package = mkOption { + type = types.package; + default = pkgs.clipcat; + defaultText = "pkgs.clipcat"; + description = "clipcat derivation to use."; + }; + }; + + config = mkIf cfg.enable { + systemd.user.services.clipcat = { + enable = true; + description = "clipcat daemon"; + wantedBy = [ "graphical-session.target" ]; + after = [ "graphical-session.target" ]; + serviceConfig.ExecStart = "${cfg.package}/bin/clipcatd --no-daemon"; + }; + + environment.systemPackages = [ cfg.package ]; + }; +} |