infrastructure/hosts/aurum/system/impermanence/default.nix
2024-01-15 16:50:55 +01:00

31 lines
663 B
Nix

{...}: {
environment.persistence."/persistent" = {
hideMounts = true;
directories = [
"/var/log"
"/var/lib/bluetooth"
"/var/lib/nixos"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
"/etc/secureboot"
];
files = [
"/etc/machine-id"
];
# TODO: move this into home config, when silicium has impermanence too
users.laurent = {
directories = [
"Documents"
".librewolf"
".thunderbird"
".local/share/direnv"
".local/share/keyrings"
{
directory = ".ssh";
mode = "0700";
}
];
};
};
}