dotfiles/modules/nixos/hardware/keyboard.nix
2023-06-05 23:50:01 -04:00

27 lines
459 B
Nix

{ config, ... }: {
config = {
services.xserver = {
layout = "us";
# Keyboard responsiveness
autoRepeatDelay = 250;
autoRepeatInterval = 40;
};
# Use capslock as escape and/or control
services.keyd = {
enable = true;
settings = { main = { capslock = "overload(control, esc)"; }; };
};
# Enable num lock on login
home-manager.users.${config.user}.xsession.numlock.enable = true;
};
}