summaryrefslogtreecommitdiff
path: root/hosts/local/p16/keyboard.nix
blob: d335f22c40a298922a708e253b1a603cb1a84027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{_pkgs, ...}: {
  services.logind.settings.Login = {
    # don’t shutdown when power button is short-pressed
    HandlePowerKey = "ignore";
  };

  #kmonad
  services.kmonad = {
    enable = true;
    keyboards = {
      myKmonadOutput = {
        device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
        config = builtins.readFile ../keyboards/thinkpad-numpad.kbd;
      };
      usbThinkpad = {
        # device = "/dev/input/by-id/usb-Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint-event-kbd";
        device = "/dev/input/by-id/usb-Lenovo_TrackPoint_Keyboard_II-event-kbd";
        config = builtins.readFile ../keyboards/thinkpad-usb.kbd;
      };
    };
  };
}