diff options
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/impermanence.nix | 4 | ||||
-rw-r--r-- | profiles/ssh.nix | 9 |
2 files changed, 2 insertions, 11 deletions
diff --git a/profiles/impermanence.nix b/profiles/impermanence.nix index d4034a3..d739f25 100644 --- a/profiles/impermanence.nix +++ b/profiles/impermanence.nix @@ -18,9 +18,9 @@ in { ]; files = [ - "/etc/machine-id" ] - ++ sshHostKeys; + ++ sshHostKeys + ++ (map (x: x + ".pub") sshHostKeys); }; age.identityPaths = (map (x: "/nix/persistent" + x) sshHostKeys); }; diff --git a/profiles/ssh.nix b/profiles/ssh.nix index a753e86..a6c667f 100644 --- a/profiles/ssh.nix +++ b/profiles/ssh.nix @@ -26,14 +26,5 @@ KbdInteractiveAuthentication = false; }; }; - environment.persistence."/nix/persist" = { - hideMounts = true; - 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" - ]; - }; }; } |