From 3d9fb42fd4abf51eddb307622f304556473bcea2 Mon Sep 17 00:00:00 2001 From: Dennis Frieberg Date: Sat, 30 Sep 2023 15:07:12 +0200 Subject: [PATCH] fixed ssh paths for impermanence --- nixos/modules/impermanence.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/impermanence.nix b/nixos/modules/impermanence.nix index 9fe8998..267c9d1 100644 --- a/nixos/modules/impermanence.nix +++ b/nixos/modules/impermanence.nix @@ -32,9 +32,14 @@ config = mkIf cfg.enable { persistentStoragePath = cfg.storagePath; directories = [ "/var/log" - "/etc/ssh" "/var/lib/nixos" ]; + 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" + ]; }; environment.etc.machine-id.source = "${cfg.storagePath}/machine-id"; };