flake/nixos/packages/graphical/display-server/input.nix
2023-10-15 08:51:56 +08:00

27 lines
558 B
Nix
Executable file

{ ... }:
{
services.xserver = {
libinput = {
enable = true;
touchpad = {
accelProfile = "flat";
naturalScrolling = true;
middleEmulation = false;
};
mouse = {
accelProfile = "flat";
naturalScrolling = true;
middleEmulation = false;
};
};
};
### Removes debounce time
# https://www.reddit.com/r/linux_gaming/comments/ku6gth
environment.etc."libinput/local-overrides.quirks".text = ''
[Never Debounce]
MatchUdevType=mouse
ModelBouncingKeys=1
'';
}