summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-06-03 10:18:02 +0200
committerAlan Pearce2020-06-03 10:18:02 +0200
commitb06722eaae045ea68541934bd5ca7ab6a08b6ce3 (patch)
tree87be8201687a29db9694dba8142deddce47f5a9c
parent9397803c7bbc7aeaafccc492421a4d98bde68033 (diff)
downloadnixfiles-b06722eaae045ea68541934bd5ca7ab6a08b6ce3.tar.lz
nixfiles-b06722eaae045ea68541934bd5ca7ab6a08b6ce3.tar.zst
nixfiles-b06722eaae045ea68541934bd5ca7ab6a08b6ce3.zip
Set XDG directories
-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