From f55c83c1b8d8cacb721c2cecba40d93817745545 Mon Sep 17 00:00:00 2001 From: oddlama Date: Mon, 1 May 2023 15:00:02 +0200 Subject: [PATCH] fix(impermanence): give agenix early access to ssh keys --- hosts/common/core/impermanence.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/common/core/impermanence.nix b/hosts/common/core/impermanence.nix index 0b696d2..fe82a00 100644 --- a/hosts/common/core/impermanence.nix +++ b/hosts/common/core/impermanence.nix @@ -4,15 +4,14 @@ #environment.persistence."/nix/state" = { # hideMounts = true; # files = [ - # "/etc/machine-id" - # "/etc/ssh/ssh_host_ed25519_key" - # "/etc/ssh/ssh_host_ed25519_key.pub" # ]; # directories = [ - # "/var/log" # ]; #}; + # Give agenix access to the hostkey independent of impermanence activation + age.identityPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"]; + # State that should be kept forever, and backed up accordingly. environment.persistence."/persist" = { hideMounts = true;