use sessionVariables for setting XDG directories

environment.sessionVariables are set before the shell starts, so the
wont't pollute the default value before switch to the one set using
the environment.variables.
This commit is contained in:
Michele Guerini Rocco 2022-10-18 00:09:32 +02:00
parent 381177a942
commit 50daabb203
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -40,7 +40,6 @@
443 80 # reverse proxy
993 # imaps server
25 465 # smtp(s) server
8080 # hubot
3478 # turn server
5349 # turn server
3551 # apcups
@ -487,8 +486,8 @@
'';
};
environment.variables = {
PATH = "$HOME/.local/bin/:$PATH";
environment.sessionVariables = {
PATH = [ "$HOME/.local/bin/" ];
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_CACHE_HOME = "$HOME/.cache";