aboutsummaryrefslogtreecommitdiff
path: root/modules/workstation/hardware
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-06 19:48:14 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-06 19:55:18 +0000
commitb41c025fc13203214a45746e9c1a8b346602afea (patch)
treec993436c2e84c7706bba031394658bce2fe425cb /modules/workstation/hardware
parent643a6b1b719f711695e356ab5b827e4824c5f26d (diff)
<>: Move trackout module from input to hardware
Diffstat (limited to 'modules/workstation/hardware')
-rw-r--r--modules/workstation/hardware/default.nix7
-rw-r--r--modules/workstation/hardware/trackpoint/default.nix17
2 files changed, 23 insertions, 1 deletions
diff --git a/modules/workstation/hardware/default.nix b/modules/workstation/hardware/default.nix
index 28f684b5906..29f590df27a 100644
--- a/modules/workstation/hardware/default.nix
+++ b/modules/workstation/hardware/default.nix
@@ -4,13 +4,18 @@
* some are only relevant for specific platforms. Still
* the general support should be provided by the
* WORKSTATION module, not be bound to be device specific
+ *
+ * Not included but available:
+ *
+ * - TRACKPOINT
+ * - CKB
*/
{ ... }:
{
imports = [
- ./yubikey
./xkblayout
+ ./yubikey
];
}
diff --git a/modules/workstation/hardware/trackpoint/default.nix b/modules/workstation/hardware/trackpoint/default.nix
new file mode 100644
index 00000000000..58de0a72be6
--- /dev/null
+++ b/modules/workstation/hardware/trackpoint/default.nix
@@ -0,0 +1,17 @@
+/* TRACKPOINT INPUT CONFIGURATION
+ *
+ * This is a compatibility module for Thinkpad computers
+ */
+
+{ config, ... }: {
+ services.xserver.libinput = {
+ accelProfile = "flat";
+ accelSpeed = "-0.2";
+ scrollButton = 2;
+ };
+
+ hardware.trackpoint = {
+ enable = true;
+ emulateWheel = true;
+ };
+}