diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2019-10-20 22:55:12 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2019-12-20 00:27:34 +0100 |
commit | c9276c1b5256b05e79ace088aff2509289d3342f (patch) | |
tree | 81082021ab728c0f8bf8f79035c27eeb0e60b64f /nixos/modules/config/i18n.nix | |
parent | cf90ea146b131cb44e6043321a22020933663425 (diff) | |
download | nixlib-c9276c1b5256b05e79ace088aff2509289d3342f.tar nixlib-c9276c1b5256b05e79ace088aff2509289d3342f.tar.gz nixlib-c9276c1b5256b05e79ace088aff2509289d3342f.tar.bz2 nixlib-c9276c1b5256b05e79ace088aff2509289d3342f.tar.lz nixlib-c9276c1b5256b05e79ace088aff2509289d3342f.tar.xz nixlib-c9276c1b5256b05e79ace088aff2509289d3342f.tar.zst nixlib-c9276c1b5256b05e79ace088aff2509289d3342f.zip |
nixos: unify virtual console options
This commit moves all the virtual console related options to a dedicated config/console.nix NixOS module. Currently most of these are defined in config/i18n.nix with a "console" prefix like `i18n.consoleFont`, `i18n.consoleColors` or under `boot` and are implemented in tasks/kbd.nix. Since they have little to do with actual internationalisation and are (informally) in an attrset already, it makes sense to move them to a specific module.
Diffstat (limited to 'nixos/modules/config/i18n.nix')
-rw-r--r-- | nixos/modules/config/i18n.nix | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/nixos/modules/config/i18n.nix b/nixos/modules/config/i18n.nix index d0db8fedecd8..45691f4839c8 100644 --- a/nixos/modules/config/i18n.nix +++ b/nixos/modules/config/i18n.nix @@ -58,62 +58,6 @@ with lib; ''; }; - consolePackages = mkOption { - type = types.listOf types.package; - default = with pkgs.kbdKeymaps; [ dvp neo ]; - defaultText = ''with pkgs.kbdKeymaps; [ dvp neo ]''; - description = '' - List of additional packages that provide console fonts, keymaps and - other resources. - ''; - }; - - consoleFont = mkOption { - type = types.str; - default = "Lat2-Terminus16"; - example = "LatArCyrHeb-16"; - description = '' - The font used for the virtual consoles. Leave empty to use - whatever the <command>setfont</command> program considers the - default font. - ''; - }; - - consoleUseXkbConfig = mkOption { - type = types.bool; - default = false; - description = '' - If set, configure the console keymap from the xserver keyboard - settings. - ''; - }; - - consoleKeyMap = mkOption { - type = with types; either str path; - default = "us"; - example = "fr"; - description = '' - The keyboard mapping table for the virtual consoles. - ''; - }; - - consoleColors = mkOption { - type = types.listOf types.str; - default = []; - example = [ - "002b36" "dc322f" "859900" "b58900" - "268bd2" "d33682" "2aa198" "eee8d5" - "002b36" "cb4b16" "586e75" "657b83" - "839496" "6c71c4" "93a1a1" "fdf6e3" - ]; - description = '' - The 16 colors palette used by the virtual consoles. - Leave empty to use the default colors. - Colors must be in hexadecimal format and listed in - order from color 0 to color 15. - ''; - }; - }; }; @@ -123,13 +67,6 @@ with lib; config = { - i18n.consoleKeyMap = with config.services.xserver; - mkIf config.i18n.consoleUseXkbConfig - (pkgs.runCommand "xkb-console-keymap" { preferLocalBuild = true; } '' - '${pkgs.ckbcomp}/bin/ckbcomp' -model '${xkbModel}' -layout '${layout}' \ - -option '${xkbOptions}' -variant '${xkbVariant}' > "$out" - ''); - environment.systemPackages = optional (config.i18n.supportedLocales != []) config.i18n.glibcLocales; |