feat: added themes and other stuff

This commit is contained in:
Nick 2024-12-19 19:56:45 -06:00
parent 951928150e
commit c7b32f0f31
18 changed files with 248 additions and 61 deletions

View file

@ -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;
};
}