summary refs log tree commit diff
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-07-30 05:30:06 +0300
committertzlil <tzlils@protonmail.com>2023-07-30 05:30:06 +0300
commit612e3a6a256a88f53a942a7d65d13513e1bf59f5 (patch)
tree00395791145e3ae1236471b781048614602885db
parentcea0f713f5dd5878f6cf3462246108fbaab3616a (diff)
fix ssh mounts
-rw-r--r--profiles/impermanence.nix4
-rw-r--r--profiles/ssh.nix9
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"
-      ];
-    };
   };
 }