summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-06 13:35:40 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-06 13:35:40 +0200
commitdc00e18d483cd29e0b4ccddc286f6ce4501e90ca (patch)
tree6b62332475f66cf07365f976799549d6bf6b1ac6
parent4a03c26f8258fc8c91651c2f3886f93261978724 (diff)
downloadnixos-dc00e18d483cd29e0b4ccddc286f6ce4501e90ca.tar
nixos-dc00e18d483cd29e0b4ccddc286f6ce4501e90ca.tar.gz
nixos-dc00e18d483cd29e0b4ccddc286f6ce4501e90ca.tar.bz2
nixos-dc00e18d483cd29e0b4ccddc286f6ce4501e90ca.tar.xz
nixos-dc00e18d483cd29e0b4ccddc286f6ce4501e90ca.zip
-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 = {