nixos-config/modules/mouse-dpi.nix

15 lines
362 B
Nix
Raw Normal View History

{ lib, ... }:
let
dpi = {
2021-07-28 15:49:05 +00:00
"SteelSeries SteelSeries Aerox 3 Wireless" = "600@1000";
"Logitech G Pro Gaming Mouse" = "600@1000";
"Logitech G305" = "600@1000";
"Glorious Model O" = "600@1000";
};
in
{
services.udev.extraHwdb = lib.concatMapStrings
(n: "\nmouse:usb:*:name:${n}:*\n MOUSE_DPI=${dpi.${n}}\n")
(builtins.attrNames dpi);
}