mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 00:45:37 +00:00
d021baa1bb
required because they don't share all attributes
23 lines
480 B
Nix
23 lines
480 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
config =
|
|
lib.mkIf (config.gui.enable && config.physical && pkgs.stdenv.isLinux) {
|
|
|
|
# Mouse customization
|
|
services.ratbagd.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
libratbag # Mouse adjustments
|
|
piper # Mouse adjustments GUI
|
|
];
|
|
|
|
services.xserver.libinput.mouse = {
|
|
# Disable mouse acceleration
|
|
accelProfile = "flat";
|
|
accelSpeed = "1.15";
|
|
};
|
|
|
|
};
|
|
|
|
}
|