mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
* Fix the xserver job on non-nvidia cards.
svn path=/nixos/trunk/; revision=8800
This commit is contained in:
parent
f8d77aa58e
commit
c76fa154a6
@ -52,16 +52,17 @@ let
|
||||
|
||||
|
||||
modules =
|
||||
optional (videoDriver == "nvidia") nvidiaDrivers ++ #make sure it first loads the nvidia libs
|
||||
[
|
||||
xorg.xorgserver
|
||||
xorg.xf86inputkeyboard
|
||||
xorg.xf86inputmouse
|
||||
]
|
||||
++ optional (videoDriver == "vesa") xorg.xf86videovesa
|
||||
++ optional (videoDriver == "i810") xorg.xf86videoi810
|
||||
++ optional (videoDriver == "intel") xorg.xf86videointel;
|
||||
optional (videoDriver == "nvidia") nvidiaDrivers ++ #make sure it first loads the nvidia libs
|
||||
[
|
||||
xorg.xorgserver
|
||||
xorg.xf86inputkeyboard
|
||||
xorg.xf86inputmouse
|
||||
]
|
||||
++ optional (videoDriver == "vesa") xorg.xf86videovesa
|
||||
++ optional (videoDriver == "i810") xorg.xf86videoi810
|
||||
++ optional (videoDriver == "intel") xorg.xf86videointel;
|
||||
|
||||
|
||||
configFile = stdenv.mkDerivation {
|
||||
name = "xserver.conf";
|
||||
src = ./xserver.conf;
|
||||
@ -99,6 +100,12 @@ let
|
||||
Option \\\"AddARGBGLXVisuals\\\" \\\"true\\\" \\n \"
|
||||
export extensions=\"Option \\\"Composite\\\" \\\"Enable\\\" \\n \"
|
||||
|
||||
else
|
||||
export moduleSection='Load \"glx\" \\n \\
|
||||
Load \"dri\" '
|
||||
export screen=
|
||||
export device=
|
||||
export extensions=
|
||||
fi
|
||||
|
||||
substituteAll $src $out
|
||||
|
Loading…
Reference in New Issue
Block a user