theba: use libinput
This commit is contained in:
parent
e49e3ea6e1
commit
72d40d20fa
21
theba.nix
21
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"
|
||||
MatchIsPointer "true"
|
||||
EndSection
|
||||
'';
|
||||
|
||||
videoDrivers = [ "modesetting" ];
|
||||
useGlamor = true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user