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"; | ||||
8 | parentDirectory = {mode = 755;}; | ||||
9 | } | ||||
10 | { | ||||
11 | file = "/etc/ssh_host_rsa_key.pub"; | ||||
12 | parentDirectory = {mode = 755;}; | ||||
13 | } | ||||
14 | { | ||||
15 | file = "/etc/ssh_host_ed25519_key"; | ||||
16 | parentDirectory = {mode = 755;}; | ||||
17 | } | ||||
18 | { | ||||
19 | file = "/etc/ssh_host_ed25519_key.pub"; | ||||
20 | parentDirectory = {mode = 755;}; | ||||
21 | } | ||||
22 | ]; | ||||
23 | }; | ||||
24 | } |