From 958df8b9d12985431f7ec82978d7e8e6f852eb57 Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Mon, 17 Feb 2014 20:46:33 +0100 Subject: [PATCH] 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 --- nixos/modules/config/i18n.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/config/i18n.nix b/nixos/modules/config/i18n.nix index 56d541cb9b3b..310739aa1707 100644 --- a/nixos/modules/config/i18n.nix +++ b/nixos/modules/config/i18n.nix @@ -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 = ''