blob: 2e5c3a41595defca37e1e6b68fcbaf5352bbb974 [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";
Skyler Greybcb2cb72022-08-21 07:24:35 +01008 parentDirectory = {mode = "755";};
Skyler Grey6aa7c262022-08-20 22:22:03 +01009 }
10 {
11 file = "/etc/ssh_host_rsa_key.pub";
Skyler Greybcb2cb72022-08-21 07:24:35 +010012 parentDirectory = {mode = "755";};
Skyler Grey6aa7c262022-08-20 22:22:03 +010013 }
14 {
15 file = "/etc/ssh_host_ed25519_key";
Skyler Greybcb2cb72022-08-21 07:24:35 +010016 parentDirectory = {mode = "755";};
Skyler Grey6aa7c262022-08-20 22:22:03 +010017 }
18 {
19 file = "/etc/ssh_host_ed25519_key.pub";
Skyler Greybcb2cb72022-08-21 07:24:35 +010020 parentDirectory = {mode = "755";};
Skyler Grey6aa7c262022-08-20 22:22:03 +010021 }
22 ];
23 };
24}