aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 17:09:06 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 17:09:06 +0100
commitbd497703e30d08082525527634baa15c2c9d80a2 (patch)
treea5858c2a620d17dc231c676d4a2dbd522515a346 /modules/by-name
parentfix(system): Remove out-dated imports (diff)
downloadnixos-server-bd497703e30d08082525527634baa15c2c9d80a2.zip
fix(modules/impermanence): Don't always persist `/var/log` and `/var/lib/nixos`
Persisting them, without marking the `/srv` containing fs as `neededForBoot` will result in a kernel panic in the init (because `impermanence` tries to mount these directories and fails as `/srv` is still missing.) Thus, each host, that sets `/srv` to `neededForBoot` should add these directories to `vhack.persist.directories`.
Diffstat (limited to 'modules/by-name')
-rw-r--r--modules/by-name/im/impermanence/module.nix5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/by-name/im/impermanence/module.nix b/modules/by-name/im/impermanence/module.nix
index d645bcb..1c916e2 100644
--- a/modules/by-name/im/impermanence/module.nix
+++ b/modules/by-name/im/impermanence/module.nix
@@ -20,11 +20,6 @@ in {
directories =
[
"/etc/nixos"
- "/var/log"
-
- # TODO(@bpeetz): Instead of persisting that, encode each uid/gid directly in the
- # config. <2024-12-24>
- "/var/lib/nixos"
]
++ cfg.directories;
files = [