diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-05-14 17:24:25 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-05-14 17:24:25 -0700 |
| commit | 0dc687871a859f78652ad959f7f9a9df7ee1a2e9 (patch) | |
| tree | ea892cb26b4c32ad0387a3b047402eef4eef6b40 /home/colors.nix | |
| parent | ab0151a45da61c16f18b8a6c158fc8e10a865a1c (diff) | |
Restructuring
Diffstat (limited to 'home/colors.nix')
| -rw-r--r-- | home/colors.nix | 31 |
1 files changed, 31 insertions, 0 deletions
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" + ]); +} |