Merge pull request #7347 from sargon/pr-x11
services.x11: Add option for additional InputClass sections.
This commit is contained in:
commit
4dd1b8cc22
@ -147,6 +147,19 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inputClassSections = mkOption {
|
||||||
|
type = types.listOf types.lines;
|
||||||
|
default = [];
|
||||||
|
example = [ ''
|
||||||
|
Identifier "Trackpoint Wheel Emulation"
|
||||||
|
MatchProduct "ThinkPad USB Keyboard with TrackPoint"
|
||||||
|
Option "EmulateWheel" "true
|
||||||
|
Option "EmulateWheelButton" "2"
|
||||||
|
Option "Emulate3Buttons" "false"
|
||||||
|
'' ];
|
||||||
|
description = "Content of additional InputClass sections of the X server configuration file.";
|
||||||
|
};
|
||||||
|
|
||||||
modules = mkOption {
|
modules = mkOption {
|
||||||
type = types.listOf types.path;
|
type = types.listOf types.path;
|
||||||
default = [];
|
default = [];
|
||||||
@ -522,6 +535,14 @@ in
|
|||||||
Option "XkbVariant" "${cfg.xkbVariant}"
|
Option "XkbVariant" "${cfg.xkbVariant}"
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
# Additional "InputClass" sections
|
||||||
|
${flip concatMapStrings cfg.inputClassSections (inputClassSection: ''
|
||||||
|
Section "InputClass"
|
||||||
|
${inputClassSection}
|
||||||
|
EndSection
|
||||||
|
'')}
|
||||||
|
|
||||||
|
|
||||||
Section "ServerLayout"
|
Section "ServerLayout"
|
||||||
Identifier "Layout[all]"
|
Identifier "Layout[all]"
|
||||||
${cfg.serverLayoutSection}
|
${cfg.serverLayoutSection}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user