diff --git a/flake.nix b/flake.nix index 78748bd..b190613 100644 --- a/flake.nix +++ b/flake.nix @@ -8,6 +8,7 @@ baseline = ./modules/baseline.nix; cli = ./modules/cli.nix; gnome = ./modules/gnome.nix; + mouse-dpi = ./modules/mouse-dpi.nix; phpipam = ./modules/phpipam.nix; pipewire = ./modules/pipewire.nix; profiles = ./modules/profiles.nix; diff --git a/modules/gnome.nix b/modules/gnome.nix index b2cdc2a..f6745a0 100644 --- a/modules/gnome.nix +++ b/modules/gnome.nix @@ -39,7 +39,6 @@ in gsettings set org.gnome.desktop.media-handling autorun-never true gsettings set org.gnome.desktop.notifications show-in-lock-screen false gsettings set org.gnome.desktop.peripherals.mouse middle-click-emulation true - gsettings set org.gnome.desktop.peripherals.mouse speed 0.25 gsettings set org.gnome.desktop.privacy recent-files-max-age 30 gsettings set org.gnome.desktop.privacy remove-old-temp-files true gsettings set org.gnome.desktop.privacy remove-old-trash-files true diff --git a/modules/mouse-dpi.nix b/modules/mouse-dpi.nix new file mode 100644 index 0000000..d12fd1b --- /dev/null +++ b/modules/mouse-dpi.nix @@ -0,0 +1,13 @@ +{ lib, ... }: +let + dpi = { + "Logitech USB Receiver" = "800@1000"; + "Logitech G Pro Gaming Mouse" = "800@1000"; + "Logitech G305" = "800@1000"; + }; +in +{ + services.udev.extraHwdb = lib.concatMapStrings + (n: "\nmouse:usb:*:name:${n}:*\n MOUSE_DPI=${dpi.${n}}\n") + (builtins.attrNames dpi); +}