I followed the instructions at this email thread, and placed
services.xserver.xkbOptions = "grp:alt_space_toggle, ctrl:swapcaps";
in my /etc/nixos/configuration.nix
file, but even after rebuilding with $ nixos-rebuild switch
, and rebooting with nixos-rebuild boot
and reboot
, my caps lock key is not remapped.
How to map caps-lock to ctrl in nixos?
services.xserver.xkbOptions
should work, I am currently using this to set my caps <-> esc withcaps:swapescape
. maybe it is a bug. – wizzup Jul 11 '17 at 13:03services.xserver.xkbOptions = "ctrl:swapcaps";
into my configuration.nix, and after a reboot and back into Gnome Desktop (on X11, not Wayland), capslock is still capslock and ctrl is still ctrl. Is this a bug? – trusktr Jan 13 '20 at 23:54