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; };