From 480605b47b004c16cc4712384bc4e9d4d9c4a1ee Mon Sep 17 00:00:00 2001 From: William Date: Wed, 22 Apr 2026 19:17:35 -0300 Subject: [PATCH] fix agenix secrets on ephemeral hosts by setting identityPaths --- aspects/ephemeral.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aspects/ephemeral.nix b/aspects/ephemeral.nix index e098f8a..4003140 100644 --- a/aspects/ephemeral.nix +++ b/aspects/ephemeral.nix @@ -129,6 +129,11 @@ oldRootRetentionDays = retentionDays; }; + age.identityPaths = [ + "${persistentStoragePath}/etc/ssh/ssh_host_ed25519_key" + "${persistentStoragePath}/etc/ssh/ssh_host_rsa_key" + ]; + fileSystems."/persistent".neededForBoot = true; environment.persistence.main = {