dotfiles/modules/nixos/hardware/keyboard.nix

24 lines
386 B
Nix
Raw Normal View History

2023-03-21 22:37:22 +00:00
{ config, ... }: {
2022-04-29 02:12:16 +00:00
2023-03-21 22:37:22 +00:00
config = {
2022-05-29 17:44:45 +00:00
2023-03-21 22:37:22 +00:00
services.xserver = {
2022-05-29 17:44:45 +00:00
2023-03-21 22:37:22 +00:00
layout = "us";
2022-04-29 02:12:16 +00:00
2023-03-21 22:37:22 +00:00
# Keyboard responsiveness
autoRepeatDelay = 250;
autoRepeatInterval = 40;
# Swap escape key with caps lock key
xkbOptions = "eurosign:e,caps:swapescape";
};
# Enable num lock on login
home-manager.users.${config.user}.xsession.numlock.enable = true;
2022-05-29 17:44:45 +00:00
2022-04-29 02:12:16 +00:00
};
}