summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-06 07:44:33 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-06 07:44:33 +0200
commit0c596bf704cc7e601a191c1dc88f59a1329c701c (patch)
treed34233d500dc0c6f11d9f905fb8eee5d3d79debe
parentfix(git-server/cgit): Don't run `cgit` as `root` use `git` instead (diff)
downloadnixos-server-0c596bf704cc7e601a191c1dc88f59a1329c701c.tar.gz
nixos-server-0c596bf704cc7e601a191c1dc88f59a1329c701c.zip
fix(system/impermanence): Persist `/var/lib/nixos`
Otherwise, the mapping of uid/gid to user name or group name could
change between reboots, which would result in magically change
permissions.

We were already affected by this at some point, so just remove the
possibility of it happening again.
-rw-r--r--system/impermanence/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/impermanence/default.nix b/system/impermanence/default.nix
index f42c084..b2f0778 100644
--- a/system/impermanence/default.nix
+++ b/system/impermanence/default.nix
@@ -19,6 +19,7 @@
     directories = [
       "/etc/nixos"
       "/var/log"
+      "/var/lib/nixos"
     ];
     files = [
       "/etc/machine-id"