From d6ff65c73b8335c6220783e8860f09c5bf9e09f6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Apr 2018 22:49:44 +0200 Subject: allow mediaspace --- custom/uucp-mediaserver.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'custom/uucp-mediaserver.nix') 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 chmod 660 ${cfg.queueDir}/${name}.queue ${cfg.queueDir}/${name}.space ${cfg.queueDir}/${name}.queuesize ''; + + scripts = pkgs.callPackage ./uucp-mediaserver/scripts.nix { config = cfg; }; in { options = { services.uucp.media-server = { @@ -56,6 +58,9 @@ in { ${concatStringsSep "\n" (map touchStateFiles cfg.remoteNodes)} ''; - environment.systemPackages = [ (pkgs.callPackage ./uucp-mediaserver/scripts.nix { config = cfg; }) ]; + environment.systemPackages = [ scripts ]; + + services.uucp.commandPath = [ "${scripts}/bin" ]; + services.uucp.commands = genAttrs cfg.remoteNodes (name: ["mediaspace.${name}"] ); }; } -- cgit v1.2.3