lol

i18n: add color scheme option (close #9626)

authored by

rnhmjoj and committed by
Vladimír Čunát
2a0f9d40 779d3a2e

+20 -1
+17
nixos/modules/config/i18n.nix
··· 74 74 ''; 75 75 }; 76 76 77 + consoleColors = mkOption { 78 + type = types.listOf types.str; 79 + default = []; 80 + example = [ 81 + "002b36" "dc322f" "859900" "b58900" 82 + "268bd2" "d33682" "2aa198" "eee8d5" 83 + "002b36" "cb4b16" "586e75" "657b83" 84 + "839496" "6c71c4" "93a1a1" "fdf6e3" 85 + ]; 86 + description = '' 87 + The 16 colors palette used by the virtual consoles. 88 + Leave empty to use the default colors. 89 + Colors must be in hexadecimal format and listed in 90 + order from color 0 to color 15. 91 + ''; 92 + }; 93 + 77 94 }; 78 95 79 96 };
+3 -1
nixos/modules/tasks/kbd.nix
··· 4 4 5 5 let 6 6 7 + makeColor = n: value: "COLOR_${toString n}=${value}"; 8 + 7 9 vconsoleConf = pkgs.writeText "vconsole.conf" 8 10 '' 9 11 KEYMAP=${config.i18n.consoleKeyMap} 10 12 FONT=${config.i18n.consoleFont} 11 - ''; 13 + '' + concatImapStringsSep "\n" makeColor config.i18n.consoleColors; 12 14 13 15 in 14 16