summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/base.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix
index 0d5ba9fd..4e17ba8f 100644
--- a/user/settings/base.nix
+++ b/user/settings/base.nix
@@ -26,7 +26,12 @@
       };
     };
   };
-  home.sessionVariables.EMAIL = "alan@alanpearce.eu";
+  home.sessionVariables = {
+    EMAIL = "alan@alanpearce.eu";
+    XDG_CACHE_HOME = if pkgs.stdenv.isDarwin then "$HOME/Library/Caches/XDG" else "$HOME/.cache";
+    XDG_CONFIG_HOME = "$HOME/.config";
+    XDG_DATA_HOME = "$HOME/.local/share";
+  };
   home.packages = with pkgs; [
     pv
     fd