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

  #kmonad
  services.kmonad = lib.mkIf (pkgs.system == "x86_64-linux") {
    enable = true;

    keyboards.internal = {
      device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
      config = builtins.readFile ./framework.kbd;

      # defcfg = {
      #   enable = true;
      #   fallthrough = true;
      #  };
    };
  };
}