blob: 862310aa40e56a492a6a44e802355a1b87f56a66 [file] [log] [blame]
Skyler Grey6aa7c262022-08-20 22:22:03 +01001{
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}