xorg.xinit: also use systemwide xinitrc (#186997)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Daniel Nagy 2022-11-28 01:06:57 +01:00 committed by GitHub
parent 4581b1fc2e
commit 308abeb67b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -963,7 +963,9 @@ self: super:
propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.xauth ]
++ lib.optionals isDarwin [ xorg.libX11 xorg.xorgproto ];
postFixup = ''
substituteInPlace $out/bin/startx --replace $out/etc/X11/xinit/xserverrc /etc/X11/xinit/xserverrc
substituteInPlace $out/bin/startx \
--replace $out/etc/X11/xinit/xserverrc /etc/X11/xinit/xserverrc \
--replace $out/etc/X11/xinit/xinitrc /etc/X11/xinit/xinitrc
'';
});