diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 288d133..498a5c4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -218,6 +218,22 @@ in services.openssh = { enable = true; + hostKeys = [ + { + bits = 4096; + path = "/etc/ssh/ssh_host_rsa_key"; + type = "rsa"; + } + { + # P256 + path = "/etc/ssh/ssh_host_ecdsa_key"; + type = "ecdsa"; + } + { + path = "/etc/ssh/ssh_host_ed25519_key"; + type = "ed25519"; + } + ]; settings.PermitRootLogin = "no"; settings.PasswordAuthentication = false; };