diff options
author | polwex <polwex@sortug.com> | 2025-01-16 05:05:48 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-01-16 05:05:48 +0700 |
commit | bb7b42387f2ce27ffce5847340e09fe065487be1 (patch) | |
tree | 75507a849b3d535cf04f5ffc49abf1c811390ff2 | |
parent | a561fb86e9a1dfefc50a6ff0d35eaecf6df007b0 (diff) |
multiple keyboards!!
-rw-r--r-- | hosts/local/fw11/keyboard.nix | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/hosts/local/fw11/keyboard.nix b/hosts/local/fw11/keyboard.nix index a6a1175..7aef3c4 100644 --- a/hosts/local/fw11/keyboard.nix +++ b/hosts/local/fw11/keyboard.nix @@ -1,9 +1,4 @@ -{ - config, - lib, - pkgs, - ... -}: { +{pkgs, ...}: { services.logind.extraConfig = '' # don’t shutdown when power button is short-pressed HandlePowerKey=ignore @@ -38,16 +33,10 @@ device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd"; config = builtins.readFile ./framework.kbd; }; + usbThinkpad = { + device = "/dev/input/by-id/usb-Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint-event-kbd"; + config = builtins.readFile ./thinkpad.kbd; + }; }; - # keyboards.internal = { - # device = builtins.pathExists /dev.input/by-id/usb-Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint-event-kbd - # device = "/dev/input/by-id/usb-lenovo_thinkpad_compact_usb_keyboard_with_trackpoint-event-kbd"; - # config = builtins.readfile ./thinkpad.kbd; - - # defcfg = { - # enable = true; - # fallthrough = true; - # }; - # }; }; } |