about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2022-09-04 21:56:06 +0200
committerGitHub <noreply@github.com>2022-09-04 21:56:06 +0200
commite8e48a7a53e611ff3ae634617326924bdd6dbfb8 (patch)
tree22feed0bc0f50a099a67e259c67cbc47681e6e85 /nixos/modules/config
parentb8f814b1f9d2ed7afd2223f583ef14e8708d7c61 (diff)
parentcb406199968f9ee676a7e2cd889f34186764a2a9 (diff)
Merge pull request #189749 from ncfavier/console-colors-check
nixos/console: add format check to `console.colors`
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/console.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/config/console.nix b/nixos/modules/config/console.nix
index 493411d618361..89b75184c5d6b 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"