feat(keyd): setup keyd and some keybindings.

This commit is contained in:
CronyAkatsuki 2025-12-08 16:05:30 +01:00
parent 0fd2d59aa1
commit 1fbcf1809c
2 changed files with 26 additions and 0 deletions

View file

@ -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;
}

View 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";
};
};
};
};
};
}