mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 07:59:40 +00:00
29 lines
679 B
Nix
29 lines
679 B
Nix
{ lib, config, ...}: let
|
|
inherit (lib) mkIf;
|
|
deviceType = config.myOptions.device.roles.type;
|
|
acceptedTypes = ["laptop"];
|
|
in {
|
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
|
services.xserver.libinput = {
|
|
# enable libinput
|
|
enable = true;
|
|
|
|
# disable mouse acceleration
|
|
mouse = {
|
|
accelProfile = "flat";
|
|
accelSpeed = "0";
|
|
middleEmulation = false;
|
|
};
|
|
|
|
# touchpad settings
|
|
touchpad = {
|
|
naturalScrolling = false; # I'm weird like that
|
|
tapping = true;
|
|
clickMethod = "clickfinger";
|
|
horizontalScrolling = true;
|
|
disableWhileTyping = true;
|
|
};
|
|
};
|
|
};
|
|
}
|