summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lenovo/thinkpad/default.nix3
-rw-r--r--lenovo/thinkpad/x1/6th-gen/default.nix4
2 files changed, 6 insertions, 1 deletions
diff --git a/lenovo/thinkpad/default.nix b/lenovo/thinkpad/default.nix
index ff22639..99d4937 100644
--- a/lenovo/thinkpad/default.nix
+++ b/lenovo/thinkpad/default.nix
@@ -1,9 +1,10 @@
-{ lib, pkgs, ... }:
+{ config, lib, pkgs, ... }:
{
imports = [ ../../common/pc/laptop ];
hardware.trackpoint.enable = lib.mkDefault true;
+ hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
# Fingerprint reader: login and unlock with fingerprint (if you add one with `fprintd-enroll`)
# services.fprintd.enable = true;
diff --git a/lenovo/thinkpad/x1/6th-gen/default.nix b/lenovo/thinkpad/x1/6th-gen/default.nix
index 295c8b0..e8c6f0e 100644
--- a/lenovo/thinkpad/x1/6th-gen/default.nix
+++ b/lenovo/thinkpad/x1/6th-gen/default.nix
@@ -12,4 +12,8 @@
../../../../common/pc/laptop/acpi_call.nix
../../../../common/pc/laptop/cpu-throttling-bug.nix
];
+
+ # New ThinkPads have a different TrackPoint manufacturer/name.
+ # See also https://certification.ubuntu.com/catalog/component/input/5313/input%3ATPPS/2ElanTrackPoint/
+ hardware.trackpoint.device = "TPPS/2 Elan TrackPoint";
}