aboutsummaryrefslogtreecommitdiff
path: root/modules/keyboard/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/keyboard/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/keyboard/default.nix b/modules/keyboard/default.nix
new file mode 100644
index 0000000..92f29b0
--- /dev/null
+++ b/modules/keyboard/default.nix
@@ -0,0 +1,20 @@
+{ pkgs, ... }:
+{
+ 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;
+ };
+ };
+ };
+}