fix persistence

This commit is contained in:
Casper V. Kristensen 2023-08-26 17:46:20 +02:00
parent 280ac44223
commit 1ec5f291ac
2 changed files with 11 additions and 2 deletions

View file

@ -27,8 +27,12 @@
environment.persistence."/nix/persist" = {
hideMounts = true;
directories = [
{ directory = "/tmp"; user = "root"; group = "root"; mode = "1777"; } # see comment above
{ directory = "/var/db/sudo/lectured"; user = "root"; group = "root"; mode = "0700"; } # with great power comes great responsibility, we get it
# See comment above for /tmp
{ 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"; }
];
files = [

View file

@ -40,4 +40,9 @@
# vnStat keeps a log of hourly, daily and monthly network traffic
services.vnstat.enable = true;
environment.persistence."/nix/persist" = {
directories = [
{ directory = "/var/lib/vnstat"; user = "root"; group = "root"; mode = "0755"; }
];
};
}