diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 13:06:39 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-05 13:06:39 +0200 |
commit | 02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4 (patch) | |
tree | 0108f08ce4efc7a0a7116490306d131e4ee5a3a9 /odin.nix | |
parent | 84a37a8ef41712840e1a2462b6edc6eab56346d5 (diff) | |
download | nixos-02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4.tar nixos-02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4.tar.gz nixos-02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4.tar.bz2 nixos-02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4.tar.xz nixos-02d7e42ab4f40d194065d06e5745cc5dfeb7e0b4.zip |
uucp to odin
Diffstat (limited to 'odin.nix')
-rw-r--r-- | odin.nix | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -9,6 +9,7 @@ | |||
9 | [ # Include the results of the hardware scan. | 9 | [ # Include the results of the hardware scan. |
10 | ./odin/hw.nix | 10 | ./odin/hw.nix |
11 | ./users.nix | 11 | ./users.nix |
12 | ./custom/uucp.nix | ||
12 | ]; | 13 | ]; |
13 | 14 | ||
14 | # Use the GRUB 2 boot loader. | 15 | # Use the GRUB 2 boot loader. |
@@ -73,6 +74,27 @@ | |||
73 | 74 | ||
74 | services.haveged.enable = true; | 75 | services.haveged.enable = true; |
75 | 76 | ||
77 | services.uucp = { | ||
78 | enable = true; | ||
79 | nodeName = "odin"; | ||
80 | remoteNodes = [ "ymir" "hel" ]; | ||
81 | sshUser = { | ||
82 | openssh.authorizedKeys.keys = [ ''restrict,command="${config.security.wrapperDir}/uucico" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKD8ycFGfVkBL9wjA5Kc33cl6Qt5K2505G/38oH8Cy/e uucp@hel'' | ||
83 | ''restrict,command="${config.security.wrapperDir}/uucico" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGANj+LJ4CI6VrAgBRocKCGq74kZnwD1PdKr/gdlfVr1 uucp@ymir'' | ||
84 | ]; | ||
85 | }; | ||
86 | sshConfig = '' | ||
87 | Host ymir | ||
88 | Hostname ymir.niflheim.yggdrasil | ||
89 | IdentityFile ~/.ssh/ymir | ||
90 | Host hel | ||
91 | Hostname hel.midgard.yggdrasil | ||
92 | IdentityFile ~/.ssh/hel | ||
93 | ''; | ||
94 | commandPath = ["${pkgs.rmail}/bin"]; | ||
95 | defaultCommands = ["rmail"]; | ||
96 | }; | ||
97 | |||
76 | system.autoUpgrade.enable = true; | 98 | system.autoUpgrade.enable = true; |
77 | system.stateVersion = "18.09"; | 99 | system.stateVersion = "18.09"; |
78 | 100 | ||