feat: dank themes module

This commit is contained in:
Nick 2025-01-14 16:17:42 -06:00
parent 616ce7fbca
commit 87b2f7e687
62 changed files with 1589 additions and 201 deletions

View file

@ -11,6 +11,9 @@
attrList = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
};
boolType = lib.mkOption {
type = lib.types.bool;
};
numOptions = 20;
@ -89,8 +92,16 @@
themesSubmodule = lib.types.submodule {
options = {
colors = attrList;
currentTheme = stringType;
schemes = lib.mkOption {
type = lib.types.attrsOf (lib.types.submodule {
options = {
colours = attrList;
};
});
};
font = stringType;
currentColours = attrList;
};
};
in {
@ -135,10 +146,10 @@ in {
aesthetics = lib.mkOption {
type = lib.types.submodule {
options =
mkOptionsFromDir ./themes/config
mkOptionsFromDir ./themes
// {
themes = lib.mkOption {
type = lib.types.attrsOf themesSubmodule;
type = themesSubmodule;
};
};
};