diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-11-19 22:41:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-19 22:41:39 +0000 |
commit | 687debc45b22212dd18af3d683254a08c30533d0 (patch) | |
tree | 858d9f64b2f2214dbd5f4fa16d887ca8dd44f62e /nixos/modules/services/x11/hardware | |
parent | 041d35a08afc1de270e31ae951fc5141e69cb52a (diff) | |
parent | d6169284c46d751726a356be31ac77d52676eae2 (diff) |
Merge pull request #72774 from sylv-io/libinput
nixos/libinput: apply options to all device types
Diffstat (limited to 'nixos/modules/services/x11/hardware')
-rw-r--r-- | nixos/modules/services/x11/hardware/libinput.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/x11/hardware/libinput.nix b/nixos/modules/services/x11/hardware/libinput.nix index 4a25232383d3..71065dfc26bb 100644 --- a/nixos/modules/services/x11/hardware/libinput.nix +++ b/nixos/modules/services/x11/hardware/libinput.nix @@ -209,12 +209,12 @@ in { services.xserver.config = '' - # Automatically enable the libinput driver for all touchpads. + # General libinput configuration. + # See CONFIGURATION DETAILS section of man:libinput(4). Section "InputClass" Identifier "libinputConfiguration" - MatchIsTouchpad "on" + MatchDriver "libinput" ${optionalString (cfg.dev != null) ''MatchDevicePath "${cfg.dev}"''} - Driver "libinput" Option "AccelProfile" "${cfg.accelProfile}" ${optionalString (cfg.accelSpeed != null) ''Option "AccelSpeed" "${cfg.accelSpeed}"''} ${optionalString (cfg.buttonMapping != null) ''Option "ButtonMapping" "${cfg.buttonMapping}"''} |