summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2020-12-09 14:18:19 +0100
committerAlan Pearce2020-12-09 14:18:19 +0100
commitd5d41e4aa9b83d89019549da0dfaa6914a1ed4c1 (patch)
treead692ba1f1945c435e16c1c99e08c9302136c982 /system
parent59fa5448b6a2a7829d3f4a7d84d4765302ce1f62 (diff)
downloadnixfiles-d5d41e4aa9b83d89019549da0dfaa6914a1ed4c1.tar.lz
nixfiles-d5d41e4aa9b83d89019549da0dfaa6914a1ed4c1.tar.zst
nixfiles-d5d41e4aa9b83d89019549da0dfaa6914a1ed4c1.zip
Simplify mouse acceleration setup
Diffstat (limited to 'system')
-rw-r--r--system/settings/hardware/mouse.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/system/settings/hardware/mouse.nix b/system/settings/hardware/mouse.nix
index b30d4124..df57073e 100644
--- a/system/settings/hardware/mouse.nix
+++ b/system/settings/hardware/mouse.nix
@@ -1,12 +1,8 @@
 { config, pkgs, ... }:
 
-{ services.xserver.config = ''
-    Section "InputClass"
-        Identifier "Mouse (No Acceleration)"
-        MatchIsPointer "yes"
-        MatchIsTouchpad "no"
-        Option "AccelerationProfile" "-1"
-        Option "AccelerationScheme" "none"
-    EndSection
-  '';
+{ 
+  services.xserver.libinput = {
+    accelProfile = "flat";
+    accelSpeed = "0";
+  };
 }