Merge pull request #67389 from jtojnar/xdg-user-dirs
Allow changing xdg-user-dirs with environment.etc
This commit is contained in:
commit
d90aa7dc62
@ -21,6 +21,7 @@ in
|
||||
PAGER = mkDefault "less -R";
|
||||
EDITOR = mkDefault "nano";
|
||||
XCURSOR_PATH = [ "$HOME/.icons" ];
|
||||
XDG_CONFIG_DIRS = [ "/etc/xdg" ]; # needs to be before profile-relative paths to allow changes through environment.etc
|
||||
};
|
||||
|
||||
environment.profiles = mkAfter
|
||||
|
@ -11,8 +11,9 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ libxslt docbook_xsl makeWrapper ];
|
||||
|
||||
preFixup = ''
|
||||
# fallback values need to be last
|
||||
wrapProgram "$out/bin/xdg-user-dirs-update" \
|
||||
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
|
||||
--suffix XDG_CONFIG_DIRS : "$out/etc/xdg"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user