all repos — nixfiles @ 005bfdb01e83c677cb5d2cadcbed1ca2ee214695

System and user configuration, managed by nix and home-manager

fix XDG_STATE_HOME not matching nix profile on darwin
Alan Pearce alan@alanpearce.eu
Sun, 17 Nov 2024 16:40:50 +0100
commit

005bfdb01e83c677cb5d2cadcbed1ca2ee214695

parent

54f99637a3723a1afdcdb467cd82e9d732c02769

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M user/settings/base.nixuser/settings/base.nix
@@ -41,10 +41,7 @@ then "${config.home.homeDirectory}/Library/Caches/XDG"       else "${config.home.homeDirectory}/.cache";
     configHome = "${config.home.homeDirectory}/.config";
     dataHome = "${config.home.homeDirectory}/.local/share";
-    stateHome =
-      if pkgs.stdenv.isDarwin
-      then "${config.home.homeDirectory}/Library/Caches/TemporaryItems/State"
-      else "${config.home.homeDirectory}/.local/state";
+    stateHome = "${config.home.homeDirectory}/.local/state";
   };
 
   home.shellAliases = {