You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
510 B
29 lines
510 B
3 years ago
|
{ lib, ... }: {
|
||
|
options.submodule = lib.mkOption {
|
||
|
inherit (lib.evalModules {
|
||
|
modules = [
|
||
|
{
|
||
|
options.inner = lib.mkOption {
|
||
|
type = lib.types.bool;
|
||
|
default = false;
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
}) type;
|
||
|
default = {};
|
||
|
};
|
||
|
|
||
|
config.submodule = lib.mkMerge [
|
||
|
({ lib, ... }: {
|
||
|
options.outer = lib.mkOption {
|
||
|
type = lib.types.bool;
|
||
|
default = false;
|
||
|
};
|
||
|
})
|
||
|
{
|
||
|
inner = true;
|
||
|
outer = true;
|
||
|
}
|
||
|
];
|
||
|
}
|