about summary refs log tree commit diff
path: root/modules/workstation/hardware
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-08-14 08:54:56 +0000
committerAlyssa Ross <hi@alyssa.is>2020-08-15 18:21:36 +0000
commit516f7d2ca447d3a5bf322c99bb1a86751a5bbf04 (patch)
tree4daaa12fe5d34db75971607e541428733755a996 /modules/workstation/hardware
parentc11f2cbe1d1a8d00ba3b641575534e0a60ea0582 (diff)
downloadnixlib-516f7d2ca447d3a5bf322c99bb1a86751a5bbf04.tar
nixlib-516f7d2ca447d3a5bf322c99bb1a86751a5bbf04.tar.gz
nixlib-516f7d2ca447d3a5bf322c99bb1a86751a5bbf04.tar.bz2
nixlib-516f7d2ca447d3a5bf322c99bb1a86751a5bbf04.tar.lz
nixlib-516f7d2ca447d3a5bf322c99bb1a86751a5bbf04.tar.xz
nixlib-516f7d2ca447d3a5bf322c99bb1a86751a5bbf04.tar.zst
nixlib-516f7d2ca447d3a5bf322c99bb1a86751a5bbf04.zip
modules/libinput: init with eve trackpad quirks
Diffstat (limited to 'modules/workstation/hardware')
-rw-r--r--modules/workstation/hardware/default.nix2
-rw-r--r--modules/workstation/hardware/libinput/default.nix13
2 files changed, 14 insertions, 1 deletions
diff --git a/modules/workstation/hardware/default.nix b/modules/workstation/hardware/default.nix
index 3c33ee2b4a1b..4ff78f77cae7 100644
--- a/modules/workstation/hardware/default.nix
+++ b/modules/workstation/hardware/default.nix
@@ -1,7 +1,7 @@
 { pkgs, ... }:
 
 {
-  imports = [ ./keyboard ./yubikey ];
+  imports = [ ./keyboard ./libinput ./yubikey ];
 
   environment.systemPackages = with pkgs; [ ddrescue ];
 
diff --git a/modules/workstation/hardware/libinput/default.nix b/modules/workstation/hardware/libinput/default.nix
new file mode 100644
index 000000000000..c3a56e22feb7
--- /dev/null
+++ b/modules/workstation/hardware/libinput/default.nix
@@ -0,0 +1,13 @@
+{ ... }:
+
+{
+  environment.etc."libinput/local-overrides.quirks".text = ''
+    [Google Chromebook Eve]
+    MatchUdevType=touchpad
+    MatchName=ACPI0C50:00 18D1:5028
+    MatchDMIModalias=dmi:*svnGoogle:pnEve*
+    ModelChromebook=1
+    AttrPressureRange=6:4
+    AttrThumbPressureThreshold=45
+  '';
+}