diff options
Diffstat (limited to 'nixos/alpha')
-rw-r--r-- | nixos/alpha/configuration.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index 58477c0..3abc636 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -114,9 +114,16 @@ services.openssh.enable = true; services.openssh.settings.passwordAuthentication = false; - - environment.persistence."/persist".directories = [ - "/etc/ssh" + services.openssh.hostKeys = [ + { + path = "/persist/ssh/ssh_host_ed25519_key"; + type = "ed25519"; + } + { + path = "/persist/ssh/ssh_host_rsa_key"; + type = "rsa"; + bits = 4096; + } ]; sound.enable = false; |