mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 04:18:45 +08:00
22 lines
583 B
Nix
22 lines
583 B
Nix
inputs:
|
|
{
|
|
options.nixos.services.keyd = let inherit (inputs.lib) mkOption types; in mkOption
|
|
{ type = types.nullOr (types.submodule {}); default = null; };
|
|
config = let inherit (inputs.config.nixos.services) keyd; in inputs.lib.mkIf (keyd != null)
|
|
{
|
|
services.keyd =
|
|
{
|
|
enable = true;
|
|
keyboards.default =
|
|
{
|
|
ids = [ "*" ];
|
|
settings =
|
|
{
|
|
main.rightcontrol = "overload(r_ctrl, rightcontrol)";
|
|
"r_ctrl:C" = { left = "home"; right = "end"; up = "pageup"; down = "pagedown"; };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|