fix persistence
This commit is contained in:
parent
280ac44223
commit
1ec5f291ac
|
@ -27,8 +27,12 @@
|
||||||
environment.persistence."/nix/persist" = {
|
environment.persistence."/nix/persist" = {
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories = [
|
directories = [
|
||||||
{ directory = "/tmp"; user = "root"; group = "root"; mode = "1777"; } # see comment above
|
# See comment above for /tmp
|
||||||
{ directory = "/var/db/sudo/lectured"; user = "root"; group = "root"; mode = "0700"; } # with great power comes great responsibility, we get it
|
{ directory = "/tmp"; user = "root"; group = "root"; mode = "1777"; }
|
||||||
|
# With great power comes great responsibility, we get it
|
||||||
|
{ directory = "/var/db/sudo/lectured"; user = "root"; group = "root"; mode = "0700"; }
|
||||||
|
# Save the last run time of persistent timers so systemd knows if they was missed
|
||||||
|
{ directory = "/var/lib/systemd/timers"; user = "root"; group = "root"; mode = "0755"; }
|
||||||
{ directory = "/var/log"; user = "root"; group = "root"; mode = "0755"; }
|
{ directory = "/var/log"; user = "root"; group = "root"; mode = "0755"; }
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
|
|
|
@ -40,4 +40,9 @@
|
||||||
|
|
||||||
# vnStat keeps a log of hourly, daily and monthly network traffic
|
# vnStat keeps a log of hourly, daily and monthly network traffic
|
||||||
services.vnstat.enable = true;
|
services.vnstat.enable = true;
|
||||||
|
environment.persistence."/nix/persist" = {
|
||||||
|
directories = [
|
||||||
|
{ directory = "/var/lib/vnstat"; user = "root"; group = "root"; mode = "0755"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue