nixos-config/system/keyboard.nix

26 lines
644 B
Nix
Raw Normal View History

{ pkgs, lib, ... }:
{
services.keyd = {
enable = true;
keyboards.default = {
ids = [ "*" ];
settings = {
"main" = {
# Some programs don't respect colemaks capslock bind, so we force it here
"capslock" = "backspace";
# keyd has incorrect defaults :/
"leftshift" = "leftshift";
"rightshift" = "rightshift";
"leftalt" = "leftalt";
"rightalt" = "rightalt";
"leftcontrol" = "leftcontrol";
"rightcontrol" = "rightcontrol";
"leftmeta" = "leftmeta";
"rightmeta" = "rightmeta";
};
};
};
};
}