nixos/hosts/common/optional/persistence.nix

21 lines
484 B
Nix
Raw Permalink Normal View History

2024-05-25 20:48:50 +01:00
{
fileSystems."/persist".neededForBoot = true;
environment.persistence."/persist" = {
hideMounts = true;
directories = [
"/etc/nixos"
"/var/log"
"/var/lib/nixos"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
2024-05-27 15:04:34 +01:00
"/var/lib/flatpak"
"/run/secrets-for-users"
2024-05-25 20:48:50 +01:00
];
files = [
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/deploy_key-ssh-ed25519"
2024-05-25 20:48:50 +01:00
"/etc/ssh/ssh_host_ed25519_key.pub"
];
};
}