all repos — nixfiles @ b06722eaae045ea68541934bd5ca7ab6a08b6ce3

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

Set XDG directories
Alan Pearce alan@alanpearce.eu
Wed, 03 Jun 2020 10:18:02 +0200
commit

b06722eaae045ea68541934bd5ca7ab6a08b6ce3

parent

9397803c7bbc7aeaafccc492421a4d98bde68033

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

jump to
M user/settings/base.nixuser/settings/base.nix
@@ -26,7 +26,12 @@ opt = [ ];       };
     };
   };
-  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