nixos: remove colorscheme module

This commit is contained in:
ooks-io 2024-11-19 17:15:41 +11:00
parent 7274434d34
commit 9023bd2b64
4 changed files with 3 additions and 406 deletions

View file

@ -1,16 +1,6 @@
{
config,
lib,
...
}: let
inherit (lib) isString hasPrefix removePrefix mkOption mkOptionType;
inherit (lib.types) enum str nullOr package path int attrsOf coercedTo;
hexColorType = mkOptionType {
name = "hex-color";
descriptionClass = "noun";
description = "RGB color in hex format";
check = x: isString x && !(hasPrefix "#" x);
};
{lib, ...}: let
inherit (lib) mkOption;
inherit (lib.types) str package path int;
mkFontOption = {
family = mkOption {
@ -22,8 +12,6 @@
default = null;
};
};
cfg = config.ooknet.appearance;
in {
# imports = [./palettes];
options.ooknet.appearance = {
@ -51,24 +39,5 @@ in {
default = 22;
};
};
# Credit to github:misterio77/nix-colors
colorscheme = {
name = mkOption {
type = enum ["gruvbox-material"];
default = "gruvbox-material";
};
variant = mkOption {
type = enum ["dark" "light"];
default = "dark";
};
slug = mkOption {
type = str;
default = "${toString cfg.colorscheme.name}-${toString cfg.colorscheme.variant}";
};
palette = mkOption {
type = attrsOf (coercedTo str (removePrefix "#") hexColorType);
default = (import ./palettes/${config.ooknet.appearance.colorscheme.slug}.nix).colorscheme.palette;
};
};
};
}