nixos-config/home/themes/color.nix

15 lines
253 B
Nix
Raw Normal View History

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