mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
i18n.consoleKeyMap: Accept string or path.
i18n.consoleKeyMap maps to KEYMAP=... in vconsole.conf and `loadkeymap' in stage1. Both of these accept paths to a keymap file in addition to a string containing the name of the keymap. With this commit, it's possible to use your own keymap via: i18n.consoleKeyMap = ./path/to/something.kmap
This commit is contained in:
parent
09b2365806
commit
958df8b9d1
|
@ -53,7 +53,11 @@ in
|
|||
};
|
||||
|
||||
consoleKeyMap = mkOption {
|
||||
type = types.str;
|
||||
type = mkOptionType {
|
||||
name = "string or path";
|
||||
check = t: (isString t || types.path.check t);
|
||||
};
|
||||
|
||||
default = "us";
|
||||
example = "fr";
|
||||
description = ''
|
||||
|
|
Loading…
Reference in a new issue