diff options
author | Alan Pearce | 2020-06-03 10:18:02 +0200 |
---|---|---|
committer | Alan Pearce | 2020-06-03 10:18:02 +0200 |
commit | b06722eaae045ea68541934bd5ca7ab6a08b6ce3 (patch) | |
tree | 87be8201687a29db9694dba8142deddce47f5a9c /user/settings | |
parent | 9397803c7bbc7aeaafccc492421a4d98bde68033 (diff) | |
download | nixfiles-b06722eaae045ea68541934bd5ca7ab6a08b6ce3.tar.lz nixfiles-b06722eaae045ea68541934bd5ca7ab6a08b6ce3.tar.zst nixfiles-b06722eaae045ea68541934bd5ca7ab6a08b6ce3.zip |
Set XDG directories
Diffstat (limited to 'user/settings')
-rw-r--r-- | user/settings/base.nix | 7 |
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 |