diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-04-14 18:23:29 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-04-14 18:23:29 +0300 |
commit | 4dd1b8cc223e3475563a7d823b69861b3e1444e7 (patch) | |
tree | 219e283075af80f821d1545e0e3b6ec21319de9d /nixos | |
parent | 32fed43f6270de8244724c8e487fa24d1f7b63ca (diff) | |
parent | 057f01b11ecc8c2a9ea1c3139293dbe2eeec3951 (diff) | |
download | nixlib-4dd1b8cc223e3475563a7d823b69861b3e1444e7.tar nixlib-4dd1b8cc223e3475563a7d823b69861b3e1444e7.tar.gz nixlib-4dd1b8cc223e3475563a7d823b69861b3e1444e7.tar.bz2 nixlib-4dd1b8cc223e3475563a7d823b69861b3e1444e7.tar.lz nixlib-4dd1b8cc223e3475563a7d823b69861b3e1444e7.tar.xz nixlib-4dd1b8cc223e3475563a7d823b69861b3e1444e7.tar.zst nixlib-4dd1b8cc223e3475563a7d823b69861b3e1444e7.zip |
Merge pull request #7347 from sargon/pr-x11
services.x11: Add option for additional InputClass sections.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 64e0d4d8050e..9be7bffaac10 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -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 { type = types.listOf types.path; default = []; @@ -522,6 +535,14 @@ in Option "XkbVariant" "${cfg.xkbVariant}" EndSection + # Additional "InputClass" sections + ${flip concatMapStrings cfg.inputClassSections (inputClassSection: '' + Section "InputClass" + ${inputClassSection} + EndSection + '')} + + Section "ServerLayout" Identifier "Layout[all]" ${cfg.serverLayoutSection} |