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

  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;
      };
    };
  };
}