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

  # config file keeps getting rewritten but I don't know by who

  #kmonad
  services.kmonad = {
    enable = true;
    keyboards = {
      wirelessThinkpad = {
        device = "/dev/input/by-id/usb-Lenovo_TrackPoint_Keyboard_II-event-kbd";
        config = builtins.readFile ./thinkpad.kbd;
      };
      wiredThinkpad = {
        device = "/dev/input/by-id/usb-Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint-event-kbd";
        config = builtins.readFile ./thinkpad.kbd;
      };
    };
  };
}