nixos/impermanence: persist individual /etc/ssh files
sshd fails to start on first boot otherwise.
This commit is contained in:
@@ -62,7 +62,6 @@
|
|||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
|
|
||||||
directories = [
|
directories = [
|
||||||
"/etc/ssh"
|
|
||||||
"/export"
|
"/export"
|
||||||
"/mnt"
|
"/mnt"
|
||||||
"/var/db/sudo/lectured"
|
"/var/db/sudo/lectured"
|
||||||
@@ -73,6 +72,10 @@
|
|||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
"/etc/machine-id"
|
"/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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user