diff options
| -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"]; |
