Compare commits

..

2 Commits

Author SHA1 Message Date
2faf280893
updated 2024-04-09 13:35:58 +02:00
46df85474f
updated 2024-04-09 13:35:53 +02:00

View File

@ -64,6 +64,36 @@
} }
``` ```
```txt ```nix
{...}: {
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"
];
};
};
}
``` ```