[Nix-dev] Remapping Console Key Bindings

Mark Gardner mkg at vt.edu
Mon Jan 30 18:39:43 CET 2017


On Sun, Jan 29, 2017 at 9:24 AM, Rodney Lorrimar <dev at rodney.id.au> wrote:

> I just realised that the previous advice doesn't work very well after a
> reboot (no keys work except control).
>

​I got bitten by that one. I could not type in my password to decrypt the
disk before NixOS could boot. I am thankful for rollback! :-)
​

> 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;
>

​This makes sense. I will try it when I get home.

Mark
-- 
Mark Gardner
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170130/feb65ec2/attachment.html>


More information about the nix-dev mailing list