diff options
author | Naïm Favier <n@monade.li> | 2022-09-04 19:29:49 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-09-04 21:09:08 +0200 |
commit | cb406199968f9ee676a7e2cd889f34186764a2a9 (patch) | |
tree | 88b96caea7b7e92f3814987a94b6f905d78daf83 /nixos | |
parent | 1134c6d957fd7ebe22020dd44d281367902f4e88 (diff) |
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" |