2022-04-10 11:54:58 +02:00
|
|
|
{lib}: let
|
|
|
|
inherit
|
|
|
|
(lib)
|
2022-01-11 16:08:21 +01:00
|
|
|
mkOption
|
|
|
|
types
|
2022-04-10 11:54:58 +02:00
|
|
|
;
|
2022-01-11 16:08:21 +01:00
|
|
|
|
2022-04-10 11:54:58 +02:00
|
|
|
mkColorOption = {
|
|
|
|
default ? "#000000",
|
|
|
|
description ? "",
|
|
|
|
}:
|
|
|
|
mkOption {
|
|
|
|
inherit description default;
|
|
|
|
example = "#abcdef";
|
|
|
|
type = types.strMatching "#[0-9a-f]{6}";
|
|
|
|
};
|
2021-04-21 04:05:19 +02:00
|
|
|
in
|
2022-04-10 11:54:58 +02:00
|
|
|
mkColorOption
|