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:
parent
89a9fa0f3f
commit
817ca5e948
1 changed files with 37 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue