diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 12:29:00 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 12:29:00 +0200 |
commit | 002823adceee104f061a90f2c53f4dffeec73436 (patch) | |
tree | e7cbffb8275726ccd80ae33572f01740117f6b3d /nix/module.nix | |
parent | 03098e6f024260480ccd8002b9e20e70e05c11cf (diff) | |
download | utils-002823adceee104f061a90f2c53f4dffeec73436.tar utils-002823adceee104f061a90f2c53f4dffeec73436.tar.gz utils-002823adceee104f061a90f2c53f4dffeec73436.tar.bz2 utils-002823adceee104f061a90f2c53f4dffeec73436.tar.xz utils-002823adceee104f061a90f2c53f4dffeec73436.zip |
recv
Diffstat (limited to 'nix/module.nix')
-rw-r--r-- | nix/module.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nix/module.nix b/nix/module.nix index edc9bfb..40082b1 100644 --- a/nix/module.nix +++ b/nix/module.nix | |||
@@ -45,11 +45,17 @@ in { | |||
45 | type = with types; listOf (submodule dirConfig); | 45 | type = with types; listOf (submodule dirConfig); |
46 | default = []; | 46 | default = []; |
47 | }; | 47 | }; |
48 | |||
49 | programs.recv.enable = mkEnableOption "the ‘recv’ program"; | ||
48 | }; | 50 | }; |
49 | 51 | ||
50 | config = { | 52 | config = { |
51 | nixpkgs.overlays = [ (import ./default.nix) ]; | 53 | nixpkgs.overlays = [ (import ./default.nix) ]; |
52 | 54 | ||
53 | systemd.services = listToAttrs (map dirService config.services.rollingDirectories); | 55 | systemd.services = listToAttrs (map dirService config.services.rollingDirectories); |
56 | |||
57 | security.wrappers = mkIf config.programs.recv.enable { | ||
58 | recv.source = "${pkgs.recv}/bin/recv"; | ||
59 | }; | ||
54 | }; | 60 | }; |
55 | } | 61 | } |