zaphyra's git: nixfiles

zaphyra and void's nixfiles

commit a20f35fb203a5428c92171070d79fa11c74532a3
parent 3d45a8f3e1c0970bd558ee2a1b2165991ec9449d
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Mon, 9 Jun 2025 21:44:31 +0200

Move configs to proper options
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/config/nixos/modules/filesystem/impermanence.nix b/config/nixos/modules/filesystem/impermanence.nix
@@ -86,6 +86,7 @@ in
       ];
 
       modules.filesystem.rootDisk.parts.home = true;
+      programs.fuse.userAllowOther = lib.mkDefault true;
     })
     (lib.mkIf cfg.system.enable {
       assertions = [
diff --git a/config/nixos/modules/homeManager.nix b/config/nixos/modules/homeManager.nix
@@ -34,6 +34,7 @@ in
         };
 
         sharedModules = [
+          inputs.impermanence.homeManagerModules.impermanence
           {
             home.sessionVariables = {
               NIXPKGS_PATH = NIXPKGS_PATH;
diff --git a/config/nixos/modules/users/zaphyra.nix b/config/nixos/modules/users/zaphyra.nix
@@ -25,10 +25,6 @@ in
       sopsFile = inputs.self.sopsSecrets.common;
     };
 
-    programs.fuse.userAllowOther = lib.mkIf config.modules.filesystem.impermanence.home.enable (
-      lib.mkDefault true
-    );
-
     users.users.zaphyra = {
       uid = 1001;
       description = "zaphyra";

@@ -54,7 +50,6 @@ in
       ]
 
       (lib.optionals config.modules.filesystem.impermanence.home.enable [
-        inputs.impermanence.homeManagerModules.impermanence
         homeManagerModules.zaphyra.impermanence
       ])