mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-10 05:44:38 -05:00
feat: dank themes module
This commit is contained in:
parent
616ce7fbca
commit
87b2f7e687
62 changed files with 1589 additions and 201 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue