I just realised that the previous advice doesn't work very well after a reboot (no keys work except control). A better way is: 1. dumpkeys > /etc/nixos/keys.map 2. Edit keys.map and change keycode 58 from Caps_Lock to Control. 3. In configuration.nix: i18n.consoleKeyMap = ./keys.map; Cheers, Rodney