diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-15 23:30:56 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-15 23:30:56 +0200 |
commit | 40e6133451785fed08d1ae65c5a92130b1ac1b9e (patch) | |
tree | c6f1a9609aab95c6ff92bdb94dcd6460490dc830 /custom | |
parent | fdcccad60499bb0599303664dd9e1c2472812a0d (diff) | |
download | nixos-40e6133451785fed08d1ae65c5a92130b1ac1b9e.tar nixos-40e6133451785fed08d1ae65c5a92130b1ac1b9e.tar.gz nixos-40e6133451785fed08d1ae65c5a92130b1ac1b9e.tar.bz2 nixos-40e6133451785fed08d1ae65c5a92130b1ac1b9e.tar.xz nixos-40e6133451785fed08d1ae65c5a92130b1ac1b9e.zip |
uucp extraSys
Diffstat (limited to 'custom')
-rw-r--r-- | custom/uucp.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix index 57a5c23e..ef0d98e7 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
@@ -139,6 +139,14 @@ in { | |||
139 | default = ""; | 139 | default = ""; |
140 | description = "Extra configuration to append verbatim to `/etc/uucp/config'"; | 140 | description = "Extra configuration to append verbatim to `/etc/uucp/config'"; |
141 | }; | 141 | }; |
142 | |||
143 | extraSys = mkOption { | ||
144 | type = types.string; | ||
145 | default = '' | ||
146 | protocol-parameter g packet-size 4096 | ||
147 | ''; | ||
148 | description = "Extra configuration to prepend verbatim to `/etc/uucp/sys`"; | ||
149 | }; | ||
142 | }; | 150 | }; |
143 | }; | 151 | }; |
144 | 152 | ||
@@ -195,7 +203,7 @@ in { | |||
195 | '' + concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); | 203 | '' + concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); |
196 | }; | 204 | }; |
197 | environment.etc."uucp/sys" = { | 205 | environment.etc."uucp/sys" = { |
198 | text = concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); | 206 | text = config.services.uucp.extraSys + "\n" + concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); |
199 | }; | 207 | }; |
200 | 208 | ||
201 | security.setuidOwners = map (p: {program = p; owner = "root"; group = "root"; setuid = true; setgid = false;}) ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]; | 209 | security.setuidOwners = map (p: {program = p; owner = "root"; group = "root"; setuid = true; setgid = false;}) ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]; |