nixos-config/modules/mouse-dpi.nix
2022-01-21 22:16:06 -05:00

16 lines
346 B
Nix

{ lib, ... }:
let
setting = "600@1000";
devices = [
"SteelSeries SteelSeries Aerox 3 Wireless"
"Logitech G Pro Gaming Mouse"
"Logitech G305"
"Logitech USB Receiver"
"Glorious Model O"
];
in
{
services.udev.extraHwdb = lib.concatMapStrings
(n: "\nmouse:usb:*:name:${n}:*\n MOUSE_DPI=${setting}\n")
(devices);
}