Add the option xkbModel in the xserver.
svn path=/nixos/trunk/; revision=11041
This commit is contained in:
parent
5240c13bd2
commit
58240dc30d
@ -1143,6 +1143,14 @@
|
|||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xkbModel = mkOption {
|
||||||
|
default = "pc104";
|
||||||
|
example = "presario";
|
||||||
|
description = "
|
||||||
|
Keyboard model.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
xkbOptions = mkOption {
|
xkbOptions = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "grp:caps_toggle, grp_led:scroll";
|
example = "grp:caps_toggle, grp_led:scroll";
|
||||||
|
@ -26,7 +26,7 @@ Section "InputDevice"
|
|||||||
Identifier "Keyboard[0]"
|
Identifier "Keyboard[0]"
|
||||||
Option "Protocol" "Standard"
|
Option "Protocol" "Standard"
|
||||||
Option "XkbLayout" "@layout@"
|
Option "XkbLayout" "@layout@"
|
||||||
Option "XkbModel" "pc104"
|
Option "XkbModel" "@xkbModel@"
|
||||||
Option "XkbRules" "xfree86"
|
Option "XkbRules" "xfree86"
|
||||||
@xkbOptions@
|
@xkbOptions@
|
||||||
EndSection
|
EndSection
|
||||||
|
@ -88,6 +88,7 @@ let
|
|||||||
Option "XkbOptions" "${cfg.xkbOptions}"
|
Option "XkbOptions" "${cfg.xkbOptions}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
xkbModel = cfg.xkbModel;
|
||||||
layout = cfg.layout;
|
layout = cfg.layout;
|
||||||
|
|
||||||
corePointer = if cfg.isSynaptics then "Touchpad[0]" else "Mouse[0]";
|
corePointer = if cfg.isSynaptics then "Touchpad[0]" else "Mouse[0]";
|
||||||
|
Loading…
Reference in New Issue
Block a user