nixos-config/modules/mouse-dpi.nix

16 lines
318 B
Nix
Raw Normal View History

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