diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 22:49:44 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 22:49:44 +0200 |
commit | d6ff65c73b8335c6220783e8860f09c5bf9e09f6 (patch) | |
tree | e9edab677f0bd52451899da7a2186244bb725614 | |
parent | 282b324d8a2fe661d0a758494e25d62a8eb69915 (diff) | |
download | nixos-d6ff65c73b8335c6220783e8860f09c5bf9e09f6.tar nixos-d6ff65c73b8335c6220783e8860f09c5bf9e09f6.tar.gz nixos-d6ff65c73b8335c6220783e8860f09c5bf9e09f6.tar.bz2 nixos-d6ff65c73b8335c6220783e8860f09c5bf9e09f6.tar.xz nixos-d6ff65c73b8335c6220783e8860f09c5bf9e09f6.zip |
allow mediaspace
-rw-r--r-- | custom/uucp-mediaserver.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/custom/uucp-mediaserver.nix b/custom/uucp-mediaserver.nix index 0906b1fa..23b43118 100644 --- a/custom/uucp-mediaserver.nix +++ b/custom/uucp-mediaserver.nix | |||
@@ -14,6 +14,8 @@ let | |||
14 | 14 | ||
15 | chmod 660 ${cfg.queueDir}/${name}.queue ${cfg.queueDir}/${name}.space ${cfg.queueDir}/${name}.queuesize | 15 | chmod 660 ${cfg.queueDir}/${name}.queue ${cfg.queueDir}/${name}.space ${cfg.queueDir}/${name}.queuesize |
16 | ''; | 16 | ''; |
17 | |||
18 | scripts = pkgs.callPackage ./uucp-mediaserver/scripts.nix { config = cfg; }; | ||
17 | in { | 19 | in { |
18 | options = { | 20 | options = { |
19 | services.uucp.media-server = { | 21 | services.uucp.media-server = { |
@@ -56,6 +58,9 @@ in { | |||
56 | ${concatStringsSep "\n" (map touchStateFiles cfg.remoteNodes)} | 58 | ${concatStringsSep "\n" (map touchStateFiles cfg.remoteNodes)} |
57 | ''; | 59 | ''; |
58 | 60 | ||
59 | environment.systemPackages = [ (pkgs.callPackage ./uucp-mediaserver/scripts.nix { config = cfg; }) ]; | 61 | environment.systemPackages = [ scripts ]; |
62 | |||
63 | services.uucp.commandPath = [ "${scripts}/bin" ]; | ||
64 | services.uucp.commands = genAttrs cfg.remoteNodes (name: ["mediaspace.${name}"] ); | ||
60 | }; | 65 | }; |
61 | } | 66 | } |