diff --git a/modules/nixos-modules/ssh.nix b/modules/nixos-modules/ssh.nix index 17593aa..69bd185 100644 --- a/modules/nixos-modules/ssh.nix +++ b/modules/nixos-modules/ssh.nix @@ -19,8 +19,11 @@ } (lib.mkIf config.host.impermanence.enable { environment.persistence."/persist/system/root" = { - directories = [ - "/etc/ssh" + files = [ + "/etc/ssh/ssh_host_ed25519_key" + "/etc/ssh/ssh_host_ed25519_key.pub" + "/etc/ssh/ssh_host_rsa_key" + "/etc/ssh/ssh_host_rsa_key.pub" ]; }; })