xinit: Fix logpath and dependencies for startx.
It seems that (almost?) all NixOS users start X using the services module, because startx seems to be broken for quite some while. And it hit me while getting to NixOS for the first time as well, so I then decided to just use the service module. As I'm working with multiple X servers, writing wrappers in ~/nixpkgs/config.nix became tedious and so I decided to fix it, hopefully without breaking anything. The fix consists of: * Provide a default location for the Xorg log (~/.xorg.log - hope that's okay) * Expose xauth through xinit to ensure purity and "unexpected behaviour", also known as "simply not working", because xauth isn't in the user's environment. * Actually provide the X binary so it doesn't have to be passed to startx every time. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
5a3f9c08b0
commit
bf3d3dd19b
@ -272,6 +272,14 @@ in
|
||||
buildInputs = attrs.buildInputs ++ [xorg.libXrender];
|
||||
};
|
||||
|
||||
xinit = attrs: attrs // {
|
||||
configureFlags = "--with-xserver=${xorg.xorgserver}/bin/X";
|
||||
propagatedBuildInputs = [ xorg.xauth ];
|
||||
prePatch = ''
|
||||
sed -i 's|^defaultserverargs="|&-logfile \"$HOME/.xorg.log\"|p' startx.cpp
|
||||
'';
|
||||
};
|
||||
|
||||
xwd = attrs: attrs // {
|
||||
buildInputs = attrs.buildInputs ++ [xorg.libXt];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user