about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-09-04 19:29:49 +0200
committerNaïm Favier <n@monade.li>2022-09-04 21:09:08 +0200
commitcb406199968f9ee676a7e2cd889f34186764a2a9 (patch)
tree88b96caea7b7e92f3814987a94b6f905d78daf83 /nixos
parent1134c6d957fd7ebe22020dd44d281367902f4e88 (diff)
downloadnixlib-cb406199968f9ee676a7e2cd889f34186764a2a9.tar
nixlib-cb406199968f9ee676a7e2cd889f34186764a2a9.tar.gz
nixlib-cb406199968f9ee676a7e2cd889f34186764a2a9.tar.bz2
nixlib-cb406199968f9ee676a7e2cd889f34186764a2a9.tar.lz
nixlib-cb406199968f9ee676a7e2cd889f34186764a2a9.tar.xz
nixlib-cb406199968f9ee676a7e2cd889f34186764a2a9.tar.zst
nixlib-cb406199968f9ee676a7e2cd889f34186764a2a9.zip
nixos/console: add format check to `console.colors`
Diffstat (limited to 'nixos')
-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 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"