diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-10-06 19:48:14 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-10-06 19:55:18 +0000 |
commit | b41c025fc13203214a45746e9c1a8b346602afea (patch) | |
tree | c993436c2e84c7706bba031394658bce2fe425cb /modules/workstation/hardware | |
parent | 643a6b1b719f711695e356ab5b827e4824c5f26d (diff) |
<>: Move trackout module from input to hardware
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; + }; +} |