diff --git a/modules/system/security.nix b/modules/system/security.nix index 4459794..abada90 100644 --- a/modules/system/security.nix +++ b/modules/system/security.nix @@ -6,6 +6,20 @@ permitRootLogin = "no"; passwordAuthentication = false; forwardX11 = true; + + hostKeys = [ + { + bits = 4096; + path = "/var/persist/ssh_host_rsa_key"; + rounds = 100; + type = "rsa"; + } + { + path = "/var/persist/ssh_host_ed25519_key"; + rounds = 100; + type = "ed25519"; + } + ]; }; security = {