git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/environment: prepend /etc/xdg to XDG_CONFIG_DIRS

Previously, we were only adding profile-relative paths to XDG_CONFIG_DIRS variable. That required very ugly hacks like https://github.com/NixOS/nixpkgs/issues/33282#issuecomment-524550842 to be able to configure XDG stuff. Now, we are prepending the variable with /etc/xdg, allowing us to simply use `environment.etc."xdg/…"` options.

commit48426833c861ad8c4e601324462b352c58b8b230 authorJan Tojnar <jtojnar@gmail.com> dateSat 24 Aug 2019, 16:01 (7 years ago) parent865293c
1 file changed+1
nixos/modules/programs/environment.nix+1
nixos/modules/programs/environment.nix+1
@@ -21,6 +21,7 @@ in
2121 PAGER = mkDefault "less -R";
2222 EDITOR = mkDefault "nano";
2323 XCURSOR_PATH = [ "$HOME/.icons" ];
24+ XDG_CONFIG_DIRS = [ "/etc/xdg" ]; # needs to be before profile-relative paths to allow changes through environment.etc
2425 };
2526
2627 environment.profiles = mkAfter