diff --git a/systems/common.nix b/systems/common.nix index 9e7e302..d7d34e0 100644 --- a/systems/common.nix +++ b/systems/common.nix @@ -71,5 +71,19 @@ algorithm = "zstd"; }; + # Disable DualSense/DualShock 4 touchpad acting as mouse + # See https://wiki.archlinux.org/title/Gamepad#Disable_touchpad_acting_as_mouse + services.udev.extraRules = '' + # USB + ATTRS{name}=="Sony Interactive Entertainment Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1" + # Bluetooth + ATTRS{name}=="Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1" + ''; + + # Fix the pairing process with a DualSense controller + hardware.bluetooth.settings = { + General.UserspaceHID = false; + }; + system.configurationRevision = inputs.self.rev or inputs.self.dirtyRev or "unknown-dirty"; }