2025-07-05 00:02:39 +02:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
config,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
with lib; let
|
2025-08-15 21:33:22 +02:00
|
|
|
|
cfg = config.mySystem.hardware.ibmTrackpoint;
|
2025-07-05 00:02:39 +02:00
|
|
|
|
in {
|
2025-08-15 21:33:22 +02:00
|
|
|
|
options.mySystem.hardware.ibmTrackpoint.disable = mkEnableOption "Disable IBM’s trackpoint on ThinkPad";
|
2025-07-05 00:02:39 +02:00
|
|
|
|
config.services.udev = mkIf cfg.disable {
|
|
|
|
|
extraRules = ''
|
|
|
|
|
ATTRS{name}=="*TPPS/2 IBM TrackPoint", ENV{ID_INPUT}="", ENV{ID_INPUT_MOUSE}="", ENV{ID_INPUT_POINTINGSTICK}=""
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
}
|