Merge pull request #189749 from ncfavier/console-colors-check

nixos/console: add format check to `console.colors`
This commit is contained in:
Michele Guerini Rocco 2022-09-04 21:56:06 +02:00 committed by GitHub
commit e8e48a7a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"