1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-09-08 03:26:31 +02:00

framework/16-inch: Mark keyboard as internal for libinput

This addition tells libinput that the built-in keyboard is indeed
internal, allowing the "Disable-While-Typing" setting to take effect.

The method is explained at
https://linuxtouchpad.org/libinput/2022/05/07/disable-while-typing.html.
This commit is contained in:
Tobias Mayer 2024-07-21 15:06:36 +02:00 committed by mergify[bot]
parent b501c5fbf6
commit a7432ebaef

View File

@ -26,4 +26,14 @@
# Enable keyboard customization
hardware.keyboard.qmk.enable = lib.mkDefault true;
# Allow `services.libinput.touchpad.disableWhileTyping` to work correctly.
# Set unconditionally because libinput can also be configured dynamically via
# gsettings.
environment.etc."libinput/local-overrides.quirks".text = ''
[Serial Keyboards]
MatchUdevType=keyboard
MatchName=Framework Laptop 16 Keyboard Module - ANSI Keyboard
AttrKeyboardIntegration=internal
'';
}