summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/uucp-mediaserver.nix7
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; };
17in { 19in {
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}