From 181373ef6ddf3e429c3850711bf611f06e6878e1 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 16 Jul 2022 12:43:54 +0200 Subject: Disable touchpad if usb mouse connected --- hosts/phobos/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hosts/phobos/default.nix') diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix index 274cdcb..5bdd524 100644 --- a/hosts/phobos/default.nix +++ b/hosts/phobos/default.nix @@ -29,6 +29,12 @@ steam.enable = true; }; + /* services.udev.extraRules = '' + SUBSYSTEM=="input", ACTION=="add", ATTRS{bInterfaceProtocol}=="02", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/${user}/.Xauthority", RUN+="${pkgs.xorg.xf86inputsynaptics}/bin/synclient TouchpadOff=1" + SUBSYSTEM=="input", ACTION=="remove", ATTRS{bInterfaceProtocol}=="02", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/${user}/.Xauthority", RUN+="${pkgs.xorg.xf86inputsynaptics}/bin/synclient TouchpadOff=0" + ''; + */ + environment.etc."nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database; } -- cgit 1.4.1