From b06722eaae045ea68541934bd5ca7ab6a08b6ce3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 3 Jun 2020 10:18:02 +0200 Subject: Set XDG directories --- user/settings/base.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'user') 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 -- cgit 1.4.1