nix-config/modules/hardware/keyd.nix
2025-11-25 16:53:48 +01:00

29 lines
484 B
Nix

{
lib,
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.hardware.keyd;
in {
options = {
horseman.hardware.keyd = {
enable = mkEnableOption "Kanata, the key remapper";
};
};
config = mkIf cfg.enable {
services.keyd = {
enable = true;
keyboards.main = {
ids = ["*"];
settings = {
main = {
capslock = "overload(control, esc)";
};
};
};
};
};
}