This commit is contained in:
Reid 2024-12-11 21:24:39 -08:00
parent deaefd4e06
commit 62eebe2012
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
3 changed files with 33 additions and 5 deletions

View file

@ -0,0 +1,32 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.modules.hardware.pointer;
in {
options.modules.hardware.pointer = {
enable = mkEnableOption "Enable libinput tuning";
};
config = mkIf cfg.enable {
services.libinput = {
enable = true;
mouse = {
accelProfile = "flat"; # gameing
disableWhileTyping = false;
middleEmulation = false;
};
touchpad = {
scrollMethod = "twofinger";
sendEventsMode = "disabled-on-external-mouse";
naturalScrolling = true;
tapping = true;
tappingDragLock = false;
disableWhileTyping = false;
middleEmulation = false;
};
};
};
}