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
|
|
@ -27,6 +27,7 @@
|
|||
./oom.nix
|
||||
./boot.nix
|
||||
./kanata.nix
|
||||
./keyd.nix
|
||||
];
|
||||
|
||||
crony.bluetooth.enable = lib.mkDefault true;
|
||||
|
|
@ -56,4 +57,5 @@
|
|||
crony.oom.enable = lib.mkDefault true;
|
||||
crony.boot.enable = lib.mkDefault false;
|
||||
crony.kanata.enable = lib.mkDefault false;
|
||||
crony.keyd.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
|
|||
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