feat(keyd): setup keyd and some keybindings.
This commit is contained in:
parent
0fd2d59aa1
commit
1fbcf1809c
2 changed files with 26 additions and 0 deletions
24
modules/linux/nixos/keyd.nix
Normal file
24
modules/linux/nixos/keyd.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.keyd.enable = lib.mkEnableOption "Enable and setup keyd layers";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.keyd.enable {
|
||||
services.keyd = {
|
||||
enable = true;
|
||||
keyboards.default = {
|
||||
ids = ["*"];
|
||||
settings = {
|
||||
main = {
|
||||
capslock = "overload(control, esc)";
|
||||
esc = "capslock";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue