add keyd service

This commit is contained in:
do butterflies cry? 2026-03-22 11:42:51 +10:00
parent bf18143773
commit c952146305
Signed by: cry
GPG key ID: F68745A836CA0412
2 changed files with 21 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{lib, ...}: {
{...}: {
imports = [
./programs.nix
./keybinds.nix
];
boot.loader = {

19
groups/cryos/keybinds.nix Normal file
View file

@ -0,0 +1,19 @@
{...}: {
services.keyd = {
enable = true;
keyboards.default = {
ids = ["*"];
settings = {
main = {
capslock = "meta";
# NOTE: unsure whether or not i like oneshot...
# shift = "oneshot(shift)";
# control = "oneshot(control)";
# leftalt = "oneshot(alt)";
# rightalt = "oneshot(rightalt)";
};
};
};
};
}