* Fix the xserver job on non-nvidia cards.

svn path=/nixos/trunk/; revision=8800
This commit is contained in:
Eelco Dolstra 2007-05-29 19:53:03 +00:00
parent f8d77aa58e
commit c76fa154a6
1 changed files with 16 additions and 9 deletions

View File

@ -52,15 +52,16 @@ let
modules = modules =
optional (videoDriver == "nvidia") nvidiaDrivers ++ #make sure it first loads the nvidia libs optional (videoDriver == "nvidia") nvidiaDrivers ++ #make sure it first loads the nvidia libs
[ [
xorg.xorgserver xorg.xorgserver
xorg.xf86inputkeyboard xorg.xf86inputkeyboard
xorg.xf86inputmouse xorg.xf86inputmouse
] ]
++ optional (videoDriver == "vesa") xorg.xf86videovesa ++ optional (videoDriver == "vesa") xorg.xf86videovesa
++ optional (videoDriver == "i810") xorg.xf86videoi810 ++ optional (videoDriver == "i810") xorg.xf86videoi810
++ optional (videoDriver == "intel") xorg.xf86videointel; ++ optional (videoDriver == "intel") xorg.xf86videointel;
configFile = stdenv.mkDerivation { configFile = stdenv.mkDerivation {
name = "xserver.conf"; name = "xserver.conf";
@ -99,6 +100,12 @@ let
Option \\\"AddARGBGLXVisuals\\\" \\\"true\\\" \\n \" Option \\\"AddARGBGLXVisuals\\\" \\\"true\\\" \\n \"
export extensions=\"Option \\\"Composite\\\" \\\"Enable\\\" \\n \" export extensions=\"Option \\\"Composite\\\" \\\"Enable\\\" \\n \"
else
export moduleSection='Load \"glx\" \\n \\
Load \"dri\" '
export screen=
export device=
export extensions=
fi fi
substituteAll $src $out substituteAll $src $out