summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/uucp.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix
index 749c8e08..d8deae70 100644
--- a/custom/uucp.nix
+++ b/custom/uucp.nix
@@ -12,8 +12,9 @@ let
12 '') node.hostnames); 12 '') node.hostnames);
13 sysSpec = name: node: '' 13 sysSpec = name: node: ''
14 system ${name} 14 system ${name}
15 time Any 15 time any
16 chat "" 16 chat-seven-bit false
17 chat . ""
17 command-path ${concatStringsSep " " cfg.commandPath} 18 command-path ${concatStringsSep " " cfg.commandPath}
18 commands ${concatStringsSep " " node.commands} 19 commands ${concatStringsSep " " node.commands}
19 ${concatStringsSep "\nalternate\n" (map (port: '' 20 ${concatStringsSep "\nalternate\n" (map (port: ''
@@ -32,7 +33,13 @@ let
32 fi 33 fi
33 ''; 34 '';
34 restrictKey = key: '' 35 restrictKey = key: ''
35 restrict,command="${config.security.wrapperDir}/uucico" ${key} 36 restrict,command="${chat}" ${key}
37 '';
38 chat = pkgs.writeScript "chat" ''
39 #!${pkgs.stdenv.shell}
40
41 echo .
42 exec ${config.security.wrapperDir}/uucico
36 ''; 43 '';
37 44
38 nodeCfg = { 45 nodeCfg = {