mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-15 06:32:57 +00:00
32 lines
548 B
Nix
32 lines
548 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;
|
|
keyboards = {
|
|
default = {
|
|
ids = [ "*" ];
|
|
settings = { main = { capslock = "overload(control, esc)"; }; };
|
|
};
|
|
};
|
|
};
|
|
|
|
# Enable num lock on login
|
|
home-manager.users.${config.user}.xsession.numlock.enable = true;
|
|
|
|
};
|
|
|
|
}
|