diff --git a/system/configuration.nix b/system/configuration.nix index 6661e40..516a3ff 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -22,6 +22,7 @@ ./users.nix ./containers.nix ./network.nix + ./keyboard.nix ../settings ]; diff --git a/system/keyboard.nix b/system/keyboard.nix new file mode 100644 index 0000000..7691343 --- /dev/null +++ b/system/keyboard.nix @@ -0,0 +1,15 @@ +{ pkgs, lib, ... }: +{ + services.keyd = { + enable = true; + keyboards.default = { + ids = [ "*" ]; + settings = { + "main" = { + # Some programs don't respect colemaks capslock bind, so we force it here + "capslock" = "backspace"; + }; + }; + }; + }; +}