From 22b40edb241063ce182629b4aa1f9ef34168c185 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Wed, 1 Jan 2025 17:02:46 -0600 Subject: [PATCH] fixed SSH on defiant --- modules/nixos-modules/ssh.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" ]; }; })