summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-06 13:14:59 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-06 13:14:59 +0200
commite1b0869fde7c084961fb11c80afc8e6fbe7c7afa (patch)
tree2d7f5ac4f6af66312ff5ee10b926eb59b318656b /hel.nix
parent3c0f7675064548b9f1c95f1034cb31d517f5dc9c (diff)
downloadnixos-e1b0869fde7c084961fb11c80afc8e6fbe7c7afa.tar
nixos-e1b0869fde7c084961fb11c80afc8e6fbe7c7afa.tar.gz
nixos-e1b0869fde7c084961fb11c80afc8e6fbe7c7afa.tar.bz2
nixos-e1b0869fde7c084961fb11c80afc8e6fbe7c7afa.tar.xz
nixos-e1b0869fde7c084961fb11c80afc8e6fbe7c7afa.zip
Overhaul uucp
Diffstat (limited to 'hel.nix')
-rw-r--r--hel.nix29
1 files changed, 12 insertions, 17 deletions
diff --git a/hel.nix b/hel.nix
index 0c1ae69a..c6f02471 100644
--- a/hel.nix
+++ b/hel.nix
@@ -202,25 +202,20 @@
202 uucp = { 202 uucp = {
203 enable = true; 203 enable = true;
204 nodeName = "hel"; 204 nodeName = "hel";
205 remoteNodes = ["odin" "ymir"]; 205 remoteNodes = {
206 sshUser = { 206 "odin" = {
207 openssh.authorizedKeys.keys = [ ''restrict,command="${config.security.wrapperDir}/uucico" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFH1QWdgoC03nzW5GBuCl2pqASHeIXIYtE9IInHdaKcO uucp@ymir'' 207 publicKeys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKcDj49TqmflGTmtGBqDawxmCBWW1txj61CZ7KT0hTHK uucp@odin"];
208 ''restrict,command="${config.security.wrapperDir}/uucico" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKcDj49TqmflGTmtGBqDawxmCBWW1txj61CZ7KT0hTHK uucp@odin'' 208 hostnames = ["odin.asgard.yggdrasil"];
209 ]; 209 commands = lib.mkForce ["recv-media" "notify-gkleen"];
210 };
211 "ymir" = {
212 publicKeys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFH1QWdgoC03nzW5GBuCl2pqASHeIXIYtE9IInHdaKcO uucp@ymir"];
213 hostnames = ["ymir.yggdrasil.li" "ymir.niflheim.yggdrasil"];
214 };
210 }; 215 };
211 sshConfig = '' 216
212 Host odin
213 Hostname odin.asgard.yggdrasil
214 IdentityFile ~/.ssh/odin
215 Host ymir
216 Hostname ymir.niflheim.yggdrasil
217 IdentityFile ~/.ssh/ymir
218 '';
219 commandPath = [ "${pkgs.callPackage ./hel/recv-media.nix {}}/bin" config.security.wrapperDir ]; 217 commandPath = [ "${pkgs.callPackage ./hel/recv-media.nix {}}/bin" config.security.wrapperDir ];
220 defaultCommands = []; 218 defaultCommands = lib.mkForce [];
221 commands = {
222 "odin" = ["recv-media" "notify-gkleen"];
223 };
224 }; 219 };
225 220
226 postfix = { 221 postfix = {