diff --git a/modules/nix/services/default.nix b/modules/nix/services/default.nix index d0d9217..9f454d8 100644 --- a/modules/nix/services/default.nix +++ b/modules/nix/services/default.nix @@ -8,6 +8,7 @@ ./gnome.nix ./gnupg.nix ./greetd.nix + ./keyd.nix ./kmscon.nix ./location.nix ./logind.nix diff --git a/modules/nix/services/keyd.nix b/modules/nix/services/keyd.nix new file mode 100644 index 0000000..12e44f4 --- /dev/null +++ b/modules/nix/services/keyd.nix @@ -0,0 +1,18 @@ +{ + lib, + pkgs, + config, + ... +}: { + config = lib.mkIf config.local.profiles.desktop.enable { + services.keyd = { + enable = true; + keyboards.default = { + ids = ["*"]; + settings.main = { + capslock = "overload(control, esc)"; + }; + }; + }; + }; +}