nixos/console: add format check to console.colors

This commit is contained in:
Naïm Favier 2022-09-04 19:29:49 +02:00
parent 1134c6d957
commit cb40619996
No known key found for this signature in database
GPG Key ID: 95AFCE8211908325

View File

@ -73,8 +73,8 @@ in
};
colors = mkOption {
type = types.listOf types.str;
default = [];
type = with types; listOf (strMatching "[[:xdigit:]]{6}");
default = [ ];
example = [
"002b36" "dc322f" "859900" "b58900"
"268bd2" "d33682" "2aa198" "eee8d5"