From 912a58428c71ca73426c25c9d4eac69f119a0517 Mon Sep 17 00:00:00 2001 From: James Kay Date: Tue, 16 Jun 2020 20:44:10 +0100 Subject: [PATCH] libinput: ensure that we only apply touchpad options to touchpads --- nixos/modules/services/x11/hardware/libinput.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/hardware/libinput.nix b/nixos/modules/services/x11/hardware/libinput.nix index 9548ecb8ef6d..48543d15499b 100644 --- a/nixos/modules/services/x11/hardware/libinput.nix +++ b/nixos/modules/services/x11/hardware/libinput.nix @@ -219,6 +219,7 @@ in { Section "InputClass" Identifier "libinputConfiguration" MatchDriver "libinput" + MatchTag "Touchpad" ${optionalString (cfg.dev != null) ''MatchDevicePath "${cfg.dev}"''} Option "AccelProfile" "${cfg.accelProfile}" ${optionalString (cfg.accelSpeed != null) ''Option "AccelSpeed" "${cfg.accelSpeed}"''}