diff options
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/tinc/def.nix | 1 | ||||
| -rw-r--r-- | custom/uucp.nix | 28 | ||||
| -rw-r--r-- | custom/zsh.nix | 2 |
3 files changed, 27 insertions, 4 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix index e14ce5e9..3de31418 100644 --- a/custom/tinc/def.nix +++ b/custom/tinc/def.nix | |||
| @@ -118,6 +118,7 @@ in | |||
| 118 | DeviceType = ${data.interfaceType} | 118 | DeviceType = ${data.interfaceType} |
| 119 | Device = /dev/net/tun | 119 | Device = /dev/net/tun |
| 120 | Interface = tinc.${network} | 120 | Interface = tinc.${network} |
| 121 | ExperimentalProtocol = no | ||
| 121 | ${data.extraConfig} | 122 | ${data.extraConfig} |
| 122 | ''; | 123 | ''; |
| 123 | }; | 124 | }; |
diff --git a/custom/uucp.nix b/custom/uucp.nix index 51caf13c..ed452f22 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
| @@ -6,7 +6,7 @@ let | |||
| 6 | portSpec = name: '' | 6 | portSpec = name: '' |
| 7 | port ${name} | 7 | port ${name} |
| 8 | type pipe | 8 | type pipe |
| 9 | protocol e | 9 | protocol ${if builtins.hasAttr name config.services.uucp.protocols then config.services.uucp.protocols."${name}" else config.services.uucp.defaultProtocol} |
| 10 | reliable true | 10 | reliable true |
| 11 | command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} | 11 | command ${pkgs.openssh}/bin/ssh -x -o batchmode=yes ${name} |
| 12 | ''; | 12 | ''; |
| @@ -15,9 +15,9 @@ let | |||
| 15 | time Any | 15 | time Any |
| 16 | port ${name} | 16 | port ${name} |
| 17 | chat "" | 17 | chat "" |
| 18 | protocol e | 18 | protocol ${if builtins.hasAttr name config.services.uucp.protocols then config.services.uucp.protocols."${name}" else config.services.uucp.defaultProtocol} |
| 19 | command-path ${concatStringsSep " " config.services.uucp.commandPath} | 19 | command-path ${concatStringsSep " " config.services.uucp.commandPath} |
| 20 | commands ${concatStringsSep " " (if config.services.uucp.commands ? name then config.services.uucp.commands."${name}" else config.services.uucp.defaultCommands)} | 20 | commands ${concatStringsSep " " (if builtins.hasAttr name config.services.uucp.commands then config.services.uucp.commands."${name}" else config.services.uucp.defaultCommands)} |
| 21 | ''; | 21 | ''; |
| 22 | in { | 22 | in { |
| 23 | options = { | 23 | options = { |
| @@ -77,6 +77,18 @@ in { | |||
| 77 | description = "Override commands for specific remotes"; | 77 | description = "Override commands for specific remotes"; |
| 78 | }; | 78 | }; |
| 79 | 79 | ||
| 80 | defaultProtocol = mkOption { | ||
| 81 | type = types.string; | ||
| 82 | default = "e"; | ||
| 83 | description = "UUCP protocol to use within ssh unless overriden"; | ||
| 84 | }; | ||
| 85 | |||
| 86 | protocols = mkOption { | ||
| 87 | type = types.attrsOf types.string; | ||
| 88 | default = {}; | ||
| 89 | description = "UUCP protocols to use for specific remotes"; | ||
| 90 | }; | ||
| 91 | |||
| 80 | spoolDir = mkOption { | 92 | spoolDir = mkOption { |
| 81 | type = types.path; | 93 | type = types.path; |
| 82 | default = "/var/spool/uucp"; | 94 | default = "/var/spool/uucp"; |
| @@ -127,6 +139,14 @@ in { | |||
| 127 | default = ""; | 139 | default = ""; |
| 128 | description = "Extra configuration to append verbatim to `/etc/uucp/config'"; | 140 | description = "Extra configuration to append verbatim to `/etc/uucp/config'"; |
| 129 | }; | 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 | }; | ||
| 130 | }; | 150 | }; |
| 131 | }; | 151 | }; |
| 132 | 152 | ||
| @@ -183,7 +203,7 @@ in { | |||
| 183 | '' + concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); | 203 | '' + concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); |
| 184 | }; | 204 | }; |
| 185 | environment.etc."uucp/sys" = { | 205 | environment.etc."uucp/sys" = { |
| 186 | text = concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); | 206 | text = config.services.uucp.extraSys + "\n" + concatStringsSep "\n" (map sysSpec config.services.uucp.remoteNodes); |
| 187 | }; | 207 | }; |
| 188 | 208 | ||
| 189 | 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"]; |
diff --git a/custom/zsh.nix b/custom/zsh.nix index 7279cf4f..826a3511 100644 --- a/custom/zsh.nix +++ b/custom/zsh.nix | |||
| @@ -31,6 +31,8 @@ in rec { | |||
| 31 | tmux | 31 | tmux |
| 32 | zsh-users/zsh-syntax-highlighting | 32 | zsh-users/zsh-syntax-highlighting |
| 33 | systemd | 33 | systemd |
| 34 | pass | ||
| 35 | mosh | ||
| 34 | EOBUNDLES | 36 | EOBUNDLES |
| 35 | 37 | ||
| 36 | if [[ -e ~/.zsh-theme ]]; then | 38 | if [[ -e ~/.zsh-theme ]]; then |
