2022-05-06 03:01:56 +00:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2022-04-29 02:12:16 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
config =
|
|
|
|
lib.mkIf (config.gui.enable && config.physical && pkgs.stdenv.isLinux) {
|
2022-04-29 02:12:16 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
# Mouse customization
|
|
|
|
services.ratbagd.enable = true;
|
2022-04-30 16:32:00 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libratbag # Mouse adjustments
|
|
|
|
piper # Mouse adjustments GUI
|
|
|
|
];
|
2022-04-30 16:32:00 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
services.xserver.libinput.mouse = {
|
|
|
|
# Disable mouse acceleration
|
|
|
|
accelProfile = "flat";
|
|
|
|
accelSpeed = "1.15";
|
|
|
|
};
|
2022-04-29 02:12:16 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
};
|
2022-04-29 02:12:16 +00:00
|
|
|
|
|
|
|
}
|