when installing nixos loadkeys colemak doesn't find the colemak file.
Launch the installer with the nixos-minimal or nixos-graphical iso. try loadkeys colemak. I think the problem is the same once Nixos is installed.
However, the file is present. Doing find /nix/store -name colemak find some files. Loading the keymap with the full path then work.
nixos-version, Ubuntu/Fedora: lsb_release -a, ...)nixos-graphical-17.0.3.1769
nixos-minimal-17.0.3.1769
nix-env --version)nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)grep build-use-sandbox /etc/nix/nix.conf)Hi I just wanted to try nixos today (in a vm), and indeed I have this issue, but even if I provide the full path to the file it say's it can't load the file. Did someone manage to solve this? Is there any other way I could force colemak to be used?
Thanks in advance.
I'm not sure about the installer, but having i18n.consoleKeyMap = "colemak/en-latin9"; in configuration.nix has been working fine for me for years.
Yes I was referring about the installer, but now I see it works fine, I just didn't know the correct name for the colemak layout (loadkeys colemak/en-latin9). I was expecting loadkeys colemak to just work (as it does with dvorak), thanks for pointing that out!
Arch Linux appears to rename the keymaps files which is why loadkeys colemak works on Arch Linux. This patch was added almost 10 years ago so it seems unlikely that this will be fixed upstream in kbd any time soon.
Maybe this should be implemented in kbd.nix? However this would cause backwards compatibility problems... So maybe it would be better to just provide a symlink from colemak.map.gz to en-latin9.map.gz.
@maxigit This can be closed now. It looks like it was fixed in commit f1987fb58f5.
Most helpful comment
Arch Linux appears to rename the keymaps files which is why
loadkeys colemakworks on Arch Linux. This patch was added almost 10 years ago so it seems unlikely that this will be fixed upstream in kbd any time soon.Maybe this should be implemented in kbd.nix? However this would cause backwards compatibility problems... So maybe it would be better to just provide a symlink from
colemak.map.gztoen-latin9.map.gz.