modularize config

This commit is contained in:
willifan 2024-12-15 13:01:45 +01:00
parent 48f0c3b3ec
commit 65ff3fcd11
25 changed files with 88 additions and 14 deletions

23
modules/common/keyd.nix Normal file
View file

@ -0,0 +1,23 @@
{ ... }:
{
services.keyd = {
enable = true;
keyboards.default = {
ids = [ "*" ];
settings = {
main = {
rightalt = "overload(altgr, rightalt)";
capslock = "overload(control, esc)";
};
altgr = {
a = ''macro(compose a ")'';
o = ''macro(compose o ")'';
u = ''macro(compose u ")'';
s = ''macro(compose s s)'';
};
};
};
};
}