* Cleanup.

svn path=/nixos/trunk/; revision=9593
This commit is contained in:
Eelco Dolstra 2007-11-06 00:00:29 +00:00
parent 5459a5c007
commit e6b8dd5b25
1 changed files with 40 additions and 39 deletions

View File

@ -73,13 +73,13 @@ let
configFile = stdenv.mkDerivation {
name = "xserver.conf";
src = ./xserver.conf;
inherit fontDirectories videoDriver resolutions isClone synaptics;
inherit fontDirectories videoDriver resolutions isClone;
synapticsInputDevice = (if getCfg "isSynaptics" then "
Section \"InputDevice\"
Identifier \"Touchpad[0]\"
Driver \"synaptics\"
Option \"Device\" \""+(getCfg "devSynaptics")+"\"
Option \"Device\" \"${getCfg "devSynaptics"}\"
Option \"Protocol\" \"PS/2\"
Option \"LeftEdge\" \"1700\"
Option \"RightEdge\" \"5300\"
@ -100,18 +100,19 @@ let
Option \"TapButton3\" \"3\"
EndSection " else "");
xkbOptions = (if (getCfg "xkbOptions") == "" then "" else
" Option \"XkbOptions\" \""+(getCfg "xkbOptions")+"\"");
xkbOptions = if (getCfg "xkbOptions") == "" then "" else
" Option \"XkbOptions\" \"${getCfg "xkbOptions"}\"";
layout = getCfg "layout";
corePointer = (if getCfg "isSynaptics" then "Touchpad[0]" else "Mouse[0]");
corePointer = if getCfg "isSynaptics" then "Touchpad[0]" else "Mouse[0]";
internalAGPGART = (if (getCfg "useInternalAGPGART") == "yes" then
" Option \"UseInternalAGPGART\" \"yes\"" else
if (getCfg "useInternalAGPGART") == "no" then
" Option \"UseInternalAGPGART\" \"no\"" else
" ");
internalAGPGART =
if (getCfg "useInternalAGPGART") == "yes" then
" Option \"UseInternalAGPGART\" \"yes\""
else if (getCfg "useInternalAGPGART") == "no" then
" Option \"UseInternalAGPGART\" \"no\""
else " ";
extraDeviceConfig = getCfg "extraDeviceConfig";
extraMonitorSettings = getCfg "extraMonitorSettings";