diff options
| author | Baitinq <[email protected]> | 2022-07-16 12:43:54 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-07-16 13:47:15 +0200 |
| commit | 03821b0d3d69593f468955e927818783eb16b71d (patch) | |
| tree | 2ea191c3390bf280f2ec4e8e8d352d6604963aa7 /hosts | |
| parent | Enable rtorrent (diff) | |
| download | nixos-config-03821b0d3d69593f468955e927818783eb16b71d.tar.gz nixos-config-03821b0d3d69593f468955e927818783eb16b71d.tar.bz2 nixos-config-03821b0d3d69593f468955e927818783eb16b71d.zip | |
Disable touchpad if usb mouse connected
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/phobos/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |