1
1
Fork 0
nixos/options/custom/services/libinput.nix
Myned ab485dec35
nix: format with alejandra
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:50:53 -05:00

26 lines
717 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.services.libinput;
in {
options.custom.services.libinput.enable = mkOption {default = false;};
config = mkIf cfg.enable {
# https://gitlab.freedesktop.org/libinput/libinput
services = {
libinput.enable = true;
# https://wiki.archlinux.org/title/Libinput#Via_Udev_Rule
# https://wiki.archlinux.org/title/Libinput#Disable_device
#?? libinput list-devices
#?? udevadm info --attribute-walk /dev/input/DEVICE
# udev.extraRules = ''
# # Disable controller touchpad
# ACTION=="add|change", ATTRS{name}=="Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1"
# '';
};
};
}