Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 1 | { |
| 2 | config = { |
| 3 | services.openssh.enable = true; |
| 4 | |
| 5 | environment.persistence."/nix/persist".files = [ |
| 6 | { |
| 7 | file = "/etc/ssh_host_rsa_key"; |
Skyler Grey | bcb2cb7 | 2022-08-21 07:24:35 +0100 | [diff] [blame] | 8 | parentDirectory = {mode = "755";}; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 9 | } |
| 10 | { |
| 11 | file = "/etc/ssh_host_rsa_key.pub"; |
Skyler Grey | bcb2cb7 | 2022-08-21 07:24:35 +0100 | [diff] [blame] | 12 | parentDirectory = {mode = "755";}; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 13 | } |
| 14 | { |
| 15 | file = "/etc/ssh_host_ed25519_key"; |
Skyler Grey | bcb2cb7 | 2022-08-21 07:24:35 +0100 | [diff] [blame] | 16 | parentDirectory = {mode = "755";}; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 17 | } |
| 18 | { |
| 19 | file = "/etc/ssh_host_ed25519_key.pub"; |
Skyler Grey | bcb2cb7 | 2022-08-21 07:24:35 +0100 | [diff] [blame] | 20 | parentDirectory = {mode = "755";}; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 21 | } |
| 22 | ]; |
| 23 | }; |
| 24 | } |