How to
Find out the device name
In terminal:
libinput list-devices | grep Device
Edit NixOS configuration
Go to /etc/nixos/configuration.nix
and add this:
environment.etc."libinput/local-overrides.quirks".text = ''
[Your Mouse Name]
MatchName=Your Mouse Name
ModelBouncingKeys=1
'';
Debouncing is disabled, so the mouse can now fire rapid click events.