nixos-config/modules/mouse-dpi.nix
2022-08-03 15:11:46 -04:00

17 lines
377 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"
"Razer Razer Viper V2 Pro"
];
in
{
services.udev.extraHwdb = lib.concatMapStrings
(n: "\nmouse:usb:*:name:${n}:*\n MOUSE_DPI=${setting}\n")
(devices);
}