* Synced with trunk @ 15345

svn path=/nixos/branches/modular-nixos/; revision=15372
This commit is contained in:
Marc Weber 2009-04-28 13:49:05 +00:00
parent addf00b1cf
commit fb1e6d5c80
2 changed files with 7 additions and 27 deletions

View File

@ -305,15 +305,14 @@ let
videoDriver = cfg.videoDriver;
resolutions = map (res: ''"${toString res.x}x${toString res.y}"'') (cfg.resolutions);
videoDriverModules = getAttr [ videoDriver ] (throw "unkown video driver : \"${videoDriver}\"") knownVideoDrivers;
videoDriverModules = getAttr [ videoDriver ] (throw "unkown video driver : `${videoDriver}'") knownVideoDrivers;
modules =
getAttr ["modulesFirst"] [] videoDriverModules
++ [
xorg.xorgserver
xorg.xf86inputkeyboard
xorg.xf86inputmouse
xorg.xf86inputevdev
]
++ getAttr ["modules"] [] videoDriverModules
++ (optional cfg.synaptics.enable ["${pkgs.synaptics}/${xorg.xorgserver}" /*xorg.xf86inputevdev*/]);
@ -370,10 +369,10 @@ let
Option "XkbOptions" "${cfg.xkbOptions}"
'';
xkbModel = cfg.xkbModel;
layout = cfg.layout;
corePointer = if cfg.synaptics.enable then "Touchpad[0]" else "Mouse[0]";
setCorePointer =
if cfg.synaptics.enable then ''
InputDevice "Touchpad[0]" "CorePointer"
'' else "";
internalAGPGART =
if cfg.useInternalAGPGART == "yes" then

View File

@ -9,7 +9,6 @@ EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "on"
Option "AllowEmptyInput" "off"
EndSection
@ -22,23 +21,6 @@ Section "Module"
EndSection
Section "InputDevice"
Driver "kbd"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "@layout@"
Option "XkbModel" "@xkbModel@"
Option "XkbRules" "xfree86"
@xkbOptions@
EndSection
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[0]"
Option "Device" "/dev/input/mice"
EndSection
@synapticsInputDevice@
Section "Monitor"
@ -89,8 +71,7 @@ EndSection
Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "@corePointer@" "CorePointer"
@setCorePointer@
Screen "Screen[0]"
@serverLayoutOptions@
EndSection