Compare commits

..

No commits in common. "2faf280893ba803b27fe73c4c49eb6cc97e3c934" and "f3cda941e4dff1a4df2006ef16c9f4954e8fd3f8" have entirely different histories.

View File

@ -64,36 +64,6 @@
} }
``` ```
```nix ```txt
{...}: {
fileSystems."/persist".neededForBoot = true;
environment.persistence."/persist" = {
hideMounts = true;
directories = [
{
directory = "/etc/nixos";
user = "demo";
mode = "u=rwx,g=rx,o=rx";
}
"/var/log"
"/var/lib/bluetooth"
"/var/lib/nixos"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
];
files = [
"/etc/machine-id"
{
file = "/var/keys/secret_file";
parentDirectory = {mode = "u=rwx,g=,o=";};
}
];
users."demo" = {
directories = [
"this-will-persist"
];
};
};
}
``` ```