aboutsummaryrefslogtreecommitdiff
path: root/modules/keyboard/default.nix
blob: 47486cecf74bdfc4ca3e54339d0f748619f61792 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ ... }:
{
  services.kmonad = {
    enable = true;
    keyboards = {
      k2 = {
        name = "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;
      };
    };
  };
}