feat: kanata

This commit is contained in:
2025-01-21 21:46:36 -08:00
parent c3ada3e515
commit 23261ba8bd
3 changed files with 25 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
hm.enable = true;
i3.enable = true;
kanata.enable = true;
#programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland;
programs.firefox.enable = true;

View File

@@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }: {
imports = [ ./commonPackages.nix ./hm.nix ./i3.nix ];
imports = [ ./commonPackages.nix ./hm.nix ./i3.nix ./kanata.nix ];
}

23
nix/modules/kanata.nix Normal file
View File

@@ -0,0 +1,23 @@
{ pkgs, lib, config, ... }: {
options.kanata = { enable = lib.mkEnableOption "enable kanata"; };
config = lib.mkIf config.kanata.enable {
services.kanata.enable = true;
services.kanata.keyboards.main = {
config = ''
(defsrc
caps
)
(defalias
caps-mod esc
)
(deflayer base
@caps-mod
)
'';
extraDefCfg = "process-unmapped-keys yes";
};
};
}