From 81c37abadd8835853e8ef89eb810c4c082658187 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Thu, 29 May 2025 17:05:15 +0200 Subject: [PATCH] Fixed impermanence not mounting persist --- modules/home/utilities/impermanence.nix | 3 ++- modules/nixos/impermanence.nix | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/home/utilities/impermanence.nix b/modules/home/utilities/impermanence.nix index a7bb2a7..336549a 100644 --- a/modules/home/utilities/impermanence.nix +++ b/modules/home/utilities/impermanence.nix @@ -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; }; diff --git a/modules/nixos/impermanence.nix b/modules/nixos/impermanence.nix index b0ff42f..9983ae5 100644 --- a/modules/nixos/impermanence.nix +++ b/modules/nixos/impermanence.nix @@ -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;