Compare commits
2 Commits
f3cda941e4
...
2faf280893
Author | SHA1 | Date | |
---|---|---|---|
2faf280893 | |||
46df85474f |
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user