I use nixos without a window manager or GUI, in console mode. I use a modified console keymap called dvorak-custom.map.gz .
How can I make it so this dvorak-custom.map.gz can live in the nix store natively, and can be loaded and referenced normally with console.keyMap = "dvorak-custom";
?
You can see below my attempts at this have been commented out:
# environment.etc."kbd/keymaps/i386/dvorak/dvorak-custom.map.gz".text builtins.readFile /home/a/.local/dvorak-custom.map.gz;
#environment.etc = {
# "kbd/keymaps/i386/dvorak/dvorak-custom.map.gz".source = /home/a/.local/dvorak-custom.map.gz;
#};
console = {
font = "Lat2-Terminus16";
keyMap = "dvorak";
# keyMap = "dvorak-custom"; # want something like this here. The above environment.etc attempts do not work
};
Since I’ve been unsuccessful in making the dvorak-custom map be resident in the nixos store, I’ve resigned myself to logging in and running sudo loadkeys /home/a/.local/dvorak-custom.map.gz
, but this is not ideal for me. I want to have the dvorak custom map be a part of my configuration and nixos.
I’ve also tried:
console = {
font = "Lat2-Terminus16";
keyMap = "/home/a/.local/dvorak-custom.map.gz";
};
which also wasn’t successful.
Is there a way to achieve this?