mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
types: add SCFGDirectives type
This is currently broken, as it causes a overflow when generation documentation.
This commit is contained in:
committed by
Matthieu Coudron
parent
89a9fa0f3f
commit
817ca5e948
@@ -237,4 +237,41 @@ rec {
|
||||
) 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user