diff options
Diffstat (limited to 'modules/workstation/hardware')
-rw-r--r-- | modules/workstation/hardware/default.nix | 7 | ||||
-rw-r--r-- | modules/workstation/hardware/trackpoint/default.nix | 17 |
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; + }; +} |