From 50daabb2032d825fdd679da036a8cf8ad292f3fd Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 18 Oct 2022 00:09:32 +0200 Subject: [PATCH] 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. --- configuration.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 8527b37..4e39011 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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";