From db6ad0b03191517414063bf7ee24272d55d4761a Mon Sep 17 00:00:00 2001 From: Zhongheng Liu Date: Fri, 11 Oct 2024 22:16:49 +0300 Subject: [PATCH] feat: keyd config CapsLock -> Escape --- nixos/configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 33fe84a..8abac3b 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -24,6 +24,22 @@ }; services.pcscd.enable = true; + services.keyd = { + enable = true; + keyboards = { + default = { + ids = ["*"]; + settings = { + main = { + capslock = "overload(control, esc)"; + esc = "capslock"; + }; + }; + extraConfig = '' + ''; + }; + }; + }; programs.gnupg.agent = { enable = true; pinentryPackage = pkgs.pinentry-gtk2;