1
1
Fork 0
nixos/options/custom/services/libinput.nix
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

26 lines
715 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"
# '';
};
};
}