nixos/impermanence: persist individual /etc/ssh files

sshd fails to start on first boot otherwise.
This commit is contained in:
2026-05-01 21:40:09 -04:00
parent ad87f6ef1e
commit 17abdda056
+4 -1
View File
@@ -62,7 +62,6 @@
hideMounts = true;
directories = [
"/etc/ssh"
"/export"
"/mnt"
"/var/db/sudo/lectured"
@@ -73,6 +72,10 @@
];
files = [
"/etc/machine-id"
"/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"
];
};