From 0dc687871a859f78652ad959f7f9a9df7ee1a2e9 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Tue, 14 May 2024 17:24:25 -0700 Subject: Restructuring --- home/colors.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 home/colors.nix (limited to 'home/colors.nix') diff --git a/home/colors.nix b/home/colors.nix new file mode 100644 index 0000000..ecafe62 --- /dev/null +++ b/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