dotfiles/nixcfgs/hosts/zephyrus/keyd.nix
2025-11-04 08:49:33 +00:00

26 lines
594 B
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
keyd
];
services.keyd = {
enable = true;
keyboards = {
externalKeyboard = {
ids = ["0b05:19b6:d167885d"]; # ASUS Keyboard
settings = {
main = {
capslock = "overload(control, esc)";
};
};
};
};
};
# See https://github.com/rvaiya/keyd?tab=readme-ov-file#faqs
environment.etc."libinput/local-overrides.quirks".text = ''
[Serial Keyboards]
MatchUdevType=keyboard
MatchName=keyd*keyboard
AttrKeyboardIntegration=internal
'';
}