diff options
-rw-r--r-- | custom/uucp.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix index b46ecedf..c1f148a3 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
@@ -10,6 +10,11 @@ let | |||
10 | reliable true | 10 | reliable true |
11 | command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} | 11 | command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} |
12 | ''; | 12 | ''; |
13 | sysSpec = name: '' | ||
14 | system ${name} | ||
15 | time Any | ||
16 | port ${name} | ||
17 | ''; | ||
13 | in { | 18 | in { |
14 | options = { | 19 | options = { |
15 | services.uucp = { | 20 | services.uucp = { |
@@ -114,5 +119,12 @@ in { | |||
114 | environment.etc."uucp/port" = { | 119 | environment.etc."uucp/port" = { |
115 | text = concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); | 120 | text = concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); |
116 | }; | 121 | }; |
122 | environment.etc."uucp/sys" = { | ||
123 | text = concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); | ||
124 | }; | ||
125 | |||
126 | security.setuidOwners = map (p: {program = p; owner = "root"; group = "root"; setuid = true; setgid = false;}) ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]; | ||
127 | |||
128 | environment.systemPackages = with pkgs; [uucp]; | ||
117 | }; | 129 | }; |
118 | } | 130 | } |