diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-06 13:40:00 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-06 13:40:00 +0200 |
| commit | 70ddde12c20b82dededf056dcca093044d2b6235 (patch) | |
| tree | 98ceb55864246c292d66b82c119a7200f9d948b3 | |
| parent | dc00e18d483cd29e0b4ccddc286f6ce4501e90ca (diff) | |
| download | nixos-70ddde12c20b82dededf056dcca093044d2b6235.tar nixos-70ddde12c20b82dededf056dcca093044d2b6235.tar.gz nixos-70ddde12c20b82dededf056dcca093044d2b6235.tar.bz2 nixos-70ddde12c20b82dededf056dcca093044d2b6235.tar.xz nixos-70ddde12c20b82dededf056dcca093044d2b6235.zip | |
…
| -rw-r--r-- | custom/uucp.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix index d8deae70..9bad979e 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
| @@ -131,10 +131,16 @@ in { | |||
| 131 | 131 | ||
| 132 | defaultProtocols = mkOption { | 132 | defaultProtocols = mkOption { |
| 133 | type = types.string; | 133 | type = types.string; |
| 134 | default = "e"; | 134 | default = "te"; |
| 135 | description = "UUCP protocol to use within ssh unless overriden"; | 135 | description = "UUCP protocol to use within ssh unless overriden"; |
| 136 | }; | 136 | }; |
| 137 | 137 | ||
| 138 | incomingProtocols = mkOption { | ||
| 139 | type = types.string; | ||
| 140 | default = "te"; | ||
| 141 | description = "UUCP protocols to use when called"; | ||
| 142 | }; | ||
| 143 | |||
| 138 | homeDir = mkOption { | 144 | homeDir = mkOption { |
| 139 | type = types.path; | 145 | type = types.path; |
| 140 | default = "/var/uucp"; | 146 | default = "/var/uucp"; |
| @@ -279,7 +285,7 @@ in { | |||
| 279 | text = '' | 285 | text = '' |
| 280 | port ssh | 286 | port ssh |
| 281 | type stdin | 287 | type stdin |
| 282 | protocol e | 288 | protocol ${cfg.incomingProtocols} |
| 283 | '' + concatStringsSep "\n" (mapAttrsToList portSpec cfg.remoteNodes); | 289 | '' + concatStringsSep "\n" (mapAttrsToList portSpec cfg.remoteNodes); |
| 284 | }; | 290 | }; |
| 285 | environment.etc."uucp/sys" = { | 291 | environment.etc."uucp/sys" = { |
