Fixed impermanence not mounting persist

This commit is contained in:
Jan-Bulthuis 2025-05-29 17:05:15 +02:00
parent 85c962fd6d
commit 81c37abadd
2 changed files with 6 additions and 1 deletions

View File

@ -24,9 +24,10 @@ in
};
config = mkIf cfg.enable {
home.persistence."/persist/home" = {
home.persistence."/persist/home/${config.home.username}" = {
enable = true;
hideMounts = true;
allowOther = true;
directories = cfg.directories;
files = cfg.files;
};

View File

@ -30,8 +30,12 @@ in
};
config = mkIf cfg.enable {
fileSystems."/persist".neededForBoot = true;
boot.initrd.postResumeCommands = mkAfter cfg.resetScript;
# For home-manager persistence
programs.fuse.userAllowOther = true;
environment.persistence."/persist/system" = {
enable = true;
hideMounts = true;