2020-01-01 01:11:45 +01:00
|
|
|
{ lib, ... }: {
|
|
|
|
options.submodule = lib.mkOption {
|
|
|
|
type = lib.types.submoduleWith {
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
options.inner = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
default = {};
|
|
|
|
};
|
|
|
|
|
|
|
|
config.submodule = lib.mkMerge [
|
|
|
|
({ lib, ... }: {
|
|
|
|
options.outer = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
{
|
|
|
|
inner = true;
|
2020-09-30 01:49:58 +02:00
|
|
|
outer = true;
|
2020-01-01 01:11:45 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|