{ lib, config, ... }:
let
  inherit (lib.modules) mkIf;
in
{
  config = mkIf config.garden.profiles.laptop.enable {
    # Input settings for libinput
    services.libinput = {
      enable = true;

      # disable mouse acceleration (yes im gamer)
      mouse = {
        accelProfile = "flat";
        accelSpeed = "0";
        middleEmulation = false;
      };

      # touchpad settings
      touchpad = {
        naturalScrolling = true;
        tapping = true;
        clickMethod = "clickfinger";
        disableWhileTyping = true;
      };
    };
  };
}
