From 612e3a6a256a88f53a942a7d65d13513e1bf59f5 Mon Sep 17 00:00:00 2001 From: tzlil Date: Sun, 30 Jul 2023 05:30:06 +0300 Subject: fix ssh mounts --- profiles/impermanence.nix | 4 ++-- 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" - ]; - }; }; } -- cgit 1.4.1