impermanence: persist /var/lib/nixos/

This commit is contained in:
Casper V. Kristensen 2024-03-30 23:28:54 +01:00
parent 57040d5a76
commit 830dd4c72a

View file

@ -34,6 +34,14 @@
group = "root"; group = "root";
mode = "1777"; mode = "1777";
} }
# The uid and gid maps for entities without a static id is saved in
# /var/lib/nixos. Persist to ensure they aren't changed between reboots.
{
directory = "/var/lib/nixos";
user = "root";
group = "root";
mode = "0755";
}
# Save the last run time of persistent timers so systemd knows if they were missed # Save the last run time of persistent timers so systemd knows if they were missed
{ {
directory = "/var/lib/systemd/timers"; directory = "/var/lib/systemd/timers";