feat: keyd

This commit is contained in:
KoenDR06 2025-11-25 16:53:48 +01:00
parent 31c4d62a82
commit ea7e267dcf
3 changed files with 31 additions and 0 deletions

View file

@ -5,5 +5,6 @@
./gpu/nvidia.nix
./wifi.nix
./fingerprint.nix
./keyd.nix
];
}

29
modules/hardware/keyd.nix Normal file
View file

@ -0,0 +1,29 @@
{
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)";
};
};
};
};
};
}

View file

@ -44,6 +44,7 @@ in {
];
horseman.apps.visual.safeeyes.enable = true;
horseman.hardware.keyd.enable = true;
horseman.wm.hyprland.config = {
execOnce = [