From d7356d3fdef0d4f6236a3c5a9e668bc291be9655 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 15 Jan 2025 14:55:03 +0100 Subject: [PATCH] modules/nix/services: add keyd --- modules/nix/services/default.nix | 1 + modules/nix/services/keyd.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/nix/services/keyd.nix 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)"; + }; + }; + }; + }; +}