mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
The `optimizedKeymap` derivation was introduced in commit c9276c1b52
(2019) to pre-compile text keymaps into binary format for faster loading
during early boot (initrd).
The `-u` flag of `loadkeys` command enables Unicode mode, allowing the
keymap to contain Unicode keysyms (like `leftquote`,
`left_double_quotation_mark`). Without `-u` only non-Unicode keysyms are
supported (suitable for `ISO-8859-*` character sets).
When `console.useXkbConfig = true`, the keymap is generated by `ckbcomp`
which always produces Unicode keysyms, regardless of the local charset.
Hence this commit is a followup to #408307, and fixes #445666 for sure
while probably also fixing #411374 .
23 lines
580 B
Nix
23 lines
580 B
Nix
{ lib, ... }:
|
|
{
|
|
name = "console-xkb-and-i18n";
|
|
meta.maintainers = with lib.maintainers; [ doronbehar ];
|
|
|
|
nodes = {
|
|
# Nothing to run on this node. Only verify that this configuration doesn't
|
|
# produce the bugs described here:
|
|
#
|
|
# - https://github.com/NixOS/nixpkgs/issues/445666
|
|
# - https://github.com/NixOS/nixpkgs/issues/411374
|
|
#
|
|
x = {
|
|
i18n.defaultLocale = "eo";
|
|
console.useXkbConfig = true;
|
|
services.xserver.xkb = {
|
|
layout = "us";
|
|
variant = "colemak";
|
|
};
|
|
};
|
|
};
|
|
testScript = { nodes, ... }: "";
|
|
}
|