theba: use libinput

This commit is contained in:
Gabriel Ebner 2016-09-21 09:11:01 -04:00
parent e49e3ea6e1
commit 72d40d20fa

@ -23,28 +23,17 @@
}
];
# workaround until trackpad is supported properly
boot.extraModprobeConfig = ''
options psmouse proto=imps
'';
hardware.trackpoint = {
enable = true;
# emulateWheel = true;
};
services.xserver = {
libinput.enable = true;
config = ''
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "PS/2 Synaptics TouchPad"
Identifier "touchpad"
Driver "libinput"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
MatchIsPointer "true"
EndSection
'';
videoDrivers = [ "modesetting" ];
useGlamor = true;
};