lol

nixos/environment: move XDG_CONFIG_DIRS to sessionVariables

Otherwise, in non-interactive contexts (e.g. systemd units), this
entry (the default) won't be in the list. Only the profile relative
ones would be, since they were already using session variables. This
is clearly not the correct behavior.

+5 -1
+5 -1
nixos/modules/programs/environment.nix
··· 22 22 # be specified here; do so in the default value of programs.less.envVariables instead 23 23 PAGER = mkDefault "less"; 24 24 EDITOR = mkDefault "nano"; 25 - XDG_CONFIG_DIRS = [ "/etc/xdg" ]; # needs to be before profile-relative paths to allow changes through environment.etc 26 25 }; 27 26 28 27 # since we set PAGER to this above, make sure it's installed ··· 32 31 [ "/nix/var/nix/profiles/default" 33 32 "/run/current-system/sw" 34 33 ]; 34 + 35 + environment.sessionVariables = 36 + { 37 + XDG_CONFIG_DIRS = [ "/etc/xdg" ]; # needs to be before profile-relative paths to allow changes through environment.etc 38 + }; 35 39 36 40 # TODO: move most of these elsewhere 37 41 environment.profileRelativeSessionVariables =