aboutsummaryrefslogtreecommitdiff
path: root/modules/keyboard/default.nix
blob: 6d68e0c76b9eee07bed89ec2f396c2143ed2935d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ ... }:
{
  imports = [ ./kmonad.nix ];

  services.kmonad = {
    enable = true;
    keyboards = {
      k2 = {
        device = "/dev/input/by-id/usb-Keychron_Keychron_K2-event-kbd";
        defcfg = {
          enable = true;
          fallthrough = true;
          allowCommands = false;
          compose = { key = null; };
        };
        config = builtins.readFile ./kmonad.k2.kbd;
      };
    };
  };
}