From 72d40d20fa1eedf900dbe4e93901dea3e40ce3ec Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Wed, 21 Sep 2016 09:11:01 -0400 Subject: [PATCH] theba: use libinput --- theba.nix | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/theba.nix b/theba.nix index 74321db..f80a390 100644 --- a/theba.nix +++ b/theba.nix @@ -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" - EndSection + MatchIsPointer "true" + EndSection ''; + videoDrivers = [ "modesetting" ]; useGlamor = true; };