From 02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Apr 2018 13:06:39 +0200 Subject: uucp to odin --- odin.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'odin.nix') diff --git a/odin.nix b/odin.nix index 24129d38..aa822d0e 100644 --- a/odin.nix +++ b/odin.nix @@ -9,6 +9,7 @@ [ # Include the results of the hardware scan. ./odin/hw.nix ./users.nix + ./custom/uucp.nix ]; # Use the GRUB 2 boot loader. @@ -73,6 +74,27 @@ services.haveged.enable = true; + services.uucp = { + enable = true; + nodeName = "odin"; + remoteNodes = [ "ymir" "hel" ]; + sshUser = { + openssh.authorizedKeys.keys = [ ''restrict,command="${config.security.wrapperDir}/uucico" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKD8ycFGfVkBL9wjA5Kc33cl6Qt5K2505G/38oH8Cy/e uucp@hel'' + ''restrict,command="${config.security.wrapperDir}/uucico" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGANj+LJ4CI6VrAgBRocKCGq74kZnwD1PdKr/gdlfVr1 uucp@ymir'' + ]; + }; + sshConfig = '' + Host ymir + Hostname ymir.niflheim.yggdrasil + IdentityFile ~/.ssh/ymir + Host hel + Hostname hel.midgard.yggdrasil + IdentityFile ~/.ssh/hel + ''; + commandPath = ["${pkgs.rmail}/bin"]; + defaultCommands = ["rmail"]; + }; + system.autoUpgrade.enable = true; system.stateVersion = "18.09"; -- cgit v1.2.3