1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

types: add SCFGDirectives type

This is currently broken, as it causes a overflow when generation
documentation.
This commit is contained in:
Anton Mosich 2025-09-09 23:03:10 +02:00 committed by Matthieu Coudron
parent 89a9fa0f3f
commit 817ca5e948

View file

@ -237,4 +237,41 @@ rec {
) defs ) defs
); );
}; };
SCFGDirectives =
let
inherit (types)
listOf
nullOr
submodule
;
primType =
with types;
oneOf [
int
float
str
bool
];
directive =
(submodule {
options = {
name = mkOption { type = types.str; };
params = mkOption {
type = nullOr (listOf primType);
default = null;
};
children = mkOption {
type = nullOr directives;
default = null;
};
};
})
// {
description = "test";
};
directives = listOf directive;
in
# directives;
lib.types.anything;
} }