diff options
author | Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> | 2022-09-04 21:56:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-04 21:56:06 +0200 |
commit | e8e48a7a53e611ff3ae634617326924bdd6dbfb8 (patch) | |
tree | 22feed0bc0f50a099a67e259c67cbc47681e6e85 /nixos | |
parent | b8f814b1f9d2ed7afd2223f583ef14e8708d7c61 (diff) | |
parent | cb406199968f9ee676a7e2cd889f34186764a2a9 (diff) | |
download | nixlib-e8e48a7a53e611ff3ae634617326924bdd6dbfb8.tar nixlib-e8e48a7a53e611ff3ae634617326924bdd6dbfb8.tar.gz nixlib-e8e48a7a53e611ff3ae634617326924bdd6dbfb8.tar.bz2 nixlib-e8e48a7a53e611ff3ae634617326924bdd6dbfb8.tar.lz nixlib-e8e48a7a53e611ff3ae634617326924bdd6dbfb8.tar.xz nixlib-e8e48a7a53e611ff3ae634617326924bdd6dbfb8.tar.zst nixlib-e8e48a7a53e611ff3ae634617326924bdd6dbfb8.zip |
Merge pull request #189749 from ncfavier/console-colors-check
nixos/console: add format check to `console.colors`
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/config/console.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/config/console.nix b/nixos/modules/config/console.nix index 493411d61836..89b75184c5d6 100644 --- a/nixos/modules/config/console.nix +++ b/nixos/modules/config/console.nix @@ -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" |