Set XDG directories
Alan Pearce alan@alanpearce.eu
Wed, 03 Jun 2020 10:18:02 +0200
1 files changed, 6 insertions(+), 1 deletions(-)
jump to
M user/settings/base.nix → user/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