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
1 changed files with 5 additions and 1 deletions
|
@ -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