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
co-authored by Sandro
parent 4581b1fc2e
commit 308abeb67b
+3 -1
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
'';
});