mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
23 lines
543 B
Nix
23 lines
543 B
Nix
{ lib, config, ... }:
|
|
let
|
|
moduleName = "keyd";
|
|
in
|
|
{
|
|
options.swarselmodules.${moduleName} = lib.mkEnableOption "${moduleName} tools config";
|
|
config = lib.mkIf config.swarselmodules.${moduleName} {
|
|
services.keyd = {
|
|
enable = true;
|
|
keyboards = {
|
|
default = {
|
|
ids = [ "*" ];
|
|
settings = {
|
|
main = {
|
|
leftmeta = "overload(meta, macro(rightmeta+z))";
|
|
rightmeta = "overload(meta, macro(rightmeta+z))";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|