2024-04-20 09:42:06 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-04-28 22:12:16 -04:00
|
|
|
|
2023-04-15 12:58:37 -04:00
|
|
|
config = lib.mkIf config.gui.enable {
|
2022-04-28 22:12:16 -04:00
|
|
|
|
2023-04-15 12:58:37 -04:00
|
|
|
# Mouse customization
|
|
|
|
services.ratbagd.enable = true;
|
2022-04-30 12:32:00 -04:00
|
|
|
|
2023-04-15 12:58:37 -04:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libratbag # Mouse adjustments
|
|
|
|
piper # Mouse adjustments GUI
|
|
|
|
];
|
2022-04-28 22:12:16 -04:00
|
|
|
|
2024-05-05 15:54:12 -04:00
|
|
|
services.libinput.mouse = {
|
2023-04-15 12:58:37 -04:00
|
|
|
# Disable mouse acceleration
|
|
|
|
accelProfile = "flat";
|
|
|
|
accelSpeed = "1.15";
|
2022-12-21 14:18:03 -07:00
|
|
|
};
|
2023-04-15 12:58:37 -04:00
|
|
|
};
|
2022-04-28 22:12:16 -04:00
|
|
|
}
|