Files
frank-nix/hosts/nero/preservation.nix
T
2026-10-30 22:38:22 -04:00

24 lines
378 B
Nix

{
boot.tmp.cleanOnBoot = true;
preservation = {
enable = true;
preserveAt."/persist" = {
files = [
{
file = "/etc/machine-id";
inInitrd = true;
}
];
directories = [
"/var/lib/systemd/timers"
"/var/lib/nixos"
"/var/log"
"/var/lib/bluetooth"
"/tmp"
];
};
};
}