From 6eda4acc251fed0afbf5f1a85a63e321d8234799 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Fri, 10 May 2024 19:48:45 -0700 Subject: Initial Commit --- modules/home/colors.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 modules/home/colors.nix (limited to 'modules/home/colors.nix') diff --git a/modules/home/colors.nix b/modules/home/colors.nix new file mode 100644 index 0000000..ecafe62 --- /dev/null +++ b/modules/home/colors.nix @@ -0,0 +1,31 @@ +{ lib, ... }: + +with lib; + +{ + options.colors = + let + mkColorOption = name: { + inherit name; + value = mkOption { +# type = types.strMatching "[a-fA-F0-9]{6}"; + type = types.strMatching "[a-fA-F0-9]*"; + description = "Color ${name}."; + }; + }; + in listToAttrs (map mkColorOption [ + "primary" "secondary" + "foreground" "foregroundAlt" + "background" "backgroundAlt" + + "accent" + + "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" + "brightBlack" "brightRed" "brightGreen" "brightYellow" "brightBlue" "brightMagenta" "brightCyan" "brightWhite" + + "bg" "bg0" "bg1" "bg2" "bg3" "bg4" + "fg" "fg0" "fg1" "fg2" "fg3" "fg4" + + "orange" "brightOrange" + ]); +} -- cgit v1.2.3