summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/laptop.nix4
-rw-r--r--modules/synaptics.nix35
-rw-r--r--modules/x250.nix5
3 files changed, 25 insertions, 19 deletions
diff --git a/modules/laptop.nix b/modules/laptop.nix
index 3d6894cc..f0c88e7d 100644
--- a/modules/laptop.nix
+++ b/modules/laptop.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
 
 { boot.kernelModules = [ "coretemp" ];
   boot.extraModulePackages = with config.boot.kernelPackages; [
@@ -62,7 +62,7 @@
 
   services.xserver = {
     libinput = {
-      enable = true;
+      enable = lib.mkDefault true;
       naturalScrolling = true;
       disableWhileTyping = true;
     };
diff --git a/modules/synaptics.nix b/modules/synaptics.nix
index 0e9db17a..1028db35 100644
--- a/modules/synaptics.nix
+++ b/modules/synaptics.nix
@@ -1,24 +1,27 @@
 { config, pkgs, ... }:
 
-{ services.xserver.synaptics = {
-    enable = true;
+{ services.xserver = {
+    libinput.enable = false;
+    synaptics = {
+      enable = true;
 
-    accelFactor = "0.001";
+      accelFactor = "0.05";
 
-    minSpeed = "0.4";
-    maxSpeed = "2.0";
+      minSpeed = "0.2";
+      maxSpeed = "1.0";
 
-    palmDetect = true;
-    palmMinWidth = 5;
-    palmMinZ = 20;
+      palmDetect = true;
+      palmMinWidth = 5;
+      palmMinZ = 20;
 
-    twoFingerScroll = true;
-    vertTwoFingerScroll = true;
-    horizTwoFingerScroll = true;
-    additionalOptions = ''
-      Option "RBCornerButton" "3"
-      Option "VertScrollDelta" "-111"
-      Option "HorizScrollDelta" "-111"
-    '';
+      twoFingerScroll = true;
+      vertTwoFingerScroll = true;
+      horizTwoFingerScroll = true;
+      additionalOptions = ''
+        Option "RBCornerButton" "3"
+        Option "VertScrollDelta" "-111"
+        Option "HorizScrollDelta" "-111"
+      '';
+    };
   };
 }
diff --git a/modules/x250.nix b/modules/x250.nix
index 025bc302..a6509bf1 100644
--- a/modules/x250.nix
+++ b/modules/x250.nix
@@ -1,6 +1,9 @@
 { config, pkgs, ... }:
 
-{ boot.extraModulePackages = with config.boot.kernelPackages; [
+{ imports = [
+    ./synaptics.nix
+  ];
+  boot.extraModulePackages = with config.boot.kernelPackages; [
     acpi_call
   ];