mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-10 05:44:38 -05:00
feat: added themes and other stuff
This commit is contained in:
parent
951928150e
commit
c7b32f0f31
18 changed files with 248 additions and 61 deletions
|
@ -8,6 +8,9 @@
|
|||
listType = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
};
|
||||
attrList = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
};
|
||||
|
||||
numOptions = 20;
|
||||
|
||||
|
@ -83,6 +86,13 @@
|
|||
// genOptions mountConfig "samba"
|
||||
// genOptions mountConfig "storage";
|
||||
};
|
||||
|
||||
themesSubmodule = lib.types.submodule {
|
||||
options = {
|
||||
colors = attrList;
|
||||
font = stringType;
|
||||
};
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
services = lib.mkOption {
|
||||
|
@ -122,11 +132,23 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
aesthetics = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
options =
|
||||
mkOptionsFromDir ./themes/config
|
||||
// {
|
||||
themes = lib.mkOption {
|
||||
type = lib.types.attrsOf themesSubmodule;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
people = import ./users;
|
||||
services = import ./instances;
|
||||
machines = import ./devices;
|
||||
aesthetics = import ./themes;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue