fixed ssh paths for impermanence

This commit is contained in:
Dennis Frieberg 2023-09-30 15:07:12 +02:00
parent ed07b584f5
commit 4404d74416
Signed by: nerf
GPG key ID: 42DED0E2D8F04FB6

View file

@ -32,9 +32,14 @@ config = mkIf cfg.enable {
persistentStoragePath = cfg.storagePath; persistentStoragePath = cfg.storagePath;
directories = [ directories = [
"/var/log" "/var/log"
"/etc/ssh"
"/var/lib/nixos" "/var/lib/nixos"
]; ];
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"
];
}; };
environment.etc.machine-id.source = "${cfg.storagePath}/machine-id"; environment.etc.machine-id.source = "${cfg.storagePath}/machine-id";
}; };