moved impermanence config for var lib private into impermanence module

This commit is contained in:
Leyla Becker 2025-07-04 23:58:58 -05:00
parent 4db136d527
commit 3b00ebe572
3 changed files with 30 additions and 22 deletions

View file

@ -25,6 +25,18 @@
}
];
# fixes issues with /var/lib/private not having the correct permissions https://github.com/nix-community/impermanence/issues/254
system.activationScripts."createPersistentStorageDirs".deps = ["var-lib-private-permissions" "users" "groups"];
system.activationScripts = {
"var-lib-private-permissions" = {
deps = ["specialfs"];
text = ''
mkdir -p /persist/system/root/var/lib/private
chmod 0700 /persist/system/root/var/lib/private
'';
};
};
programs.fuse.userAllowOther = true;
boot.initrd.postResumeCommands = lib.mkAfter ''