mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
26 lines
594 B
Nix
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
|
|
'';
|
|
}
|