47 lines
798 B
Nix
47 lines
798 B
Nix
{
|
|
preservation = {
|
|
enable = true;
|
|
|
|
preserveAt."/persistent" = {
|
|
directories = [
|
|
"/etc/nixos"
|
|
"/var/lib/bluetooth"
|
|
{
|
|
directory = "/etc/NetworkManager/system-connections";
|
|
inInitrd = true;
|
|
}
|
|
{
|
|
directory = "/var/lib/NetworkManager/";
|
|
inInitrd = true;
|
|
}
|
|
{
|
|
directory = "/var/lib/nixos";
|
|
inInitrd = true;
|
|
}
|
|
];
|
|
|
|
files = [
|
|
{
|
|
file = "/etc/machine-id";
|
|
inInitrd = true;
|
|
}
|
|
];
|
|
|
|
users.konsta = {
|
|
directories = [
|
|
".mozilla"
|
|
"Documents"
|
|
"Downloads"
|
|
"Desktop"
|
|
"Pictures"
|
|
"nixconf"
|
|
];
|
|
|
|
files = [
|
|
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|