summary refs log tree commit diff
path: root/nixos/modules/services/x11/hardware
diff options
context:
space:
mode:
authorJames Kay <james@hadean.com>2020-06-16 20:44:10 +0100
committerJames Kay <james@hadean.com>2020-06-16 20:44:10 +0100
commit912a58428c71ca73426c25c9d4eac69f119a0517 (patch)
treee973c679341a72af3e72ba4bb9367fdf634cedec /nixos/modules/services/x11/hardware
parent26521ad16814d5960a05ab695af7129ec7ca6be3 (diff)
downloadnixpkgs-912a58428c71ca73426c25c9d4eac69f119a0517.tar
nixpkgs-912a58428c71ca73426c25c9d4eac69f119a0517.tar.gz
nixpkgs-912a58428c71ca73426c25c9d4eac69f119a0517.tar.bz2
nixpkgs-912a58428c71ca73426c25c9d4eac69f119a0517.tar.lz
nixpkgs-912a58428c71ca73426c25c9d4eac69f119a0517.tar.xz
nixpkgs-912a58428c71ca73426c25c9d4eac69f119a0517.tar.zst
nixpkgs-912a58428c71ca73426c25c9d4eac69f119a0517.zip
libinput: ensure that we only apply touchpad options to touchpads
Diffstat (limited to 'nixos/modules/services/x11/hardware')
-rw-r--r--nixos/modules/services/x11/hardware/libinput.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/hardware/libinput.nix b/nixos/modules/services/x11/hardware/libinput.nix
index 9548ecb8ef6..48543d15499 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}"''}