diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/uucp.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix index 5b6d32b3..a457cca7 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
@@ -2,7 +2,15 @@ | |||
2 | 2 | ||
3 | with lib; | 3 | with lib; |
4 | 4 | ||
5 | { | 5 | let |
6 | portSpec = name: '' | ||
7 | port ${name} | ||
8 | type pipe | ||
9 | protocol e | ||
10 | reliable true | ||
11 | command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} | ||
12 | ''; | ||
13 | in { | ||
6 | options = { | 14 | options = { |
7 | services.uucp = { | 15 | services.uucp = { |
8 | enable = mkOption { | 16 | enable = mkOption { |
@@ -102,5 +110,9 @@ with lib; | |||
102 | mkdir -p ${config.users.users."uucp".home}/.ssh | 110 | mkdir -p ${config.users.users."uucp".home}/.ssh |
103 | cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config | 111 | cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config |
104 | ''; | 112 | ''; |
113 | |||
114 | environment.etc."uucp/port" = { | ||
115 | text = concatStringsSep "\n" portSpec config.services.uucp.remoteNodes; | ||
116 | }; | ||
105 | }; | 117 | }; |
106 | } | 118 | } |