2024-06-30 08:16:52 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
{
|
2024-05-01 22:14:04 +00:00
|
|
|
options.submodule = lib.mkOption {
|
2024-06-30 08:16:52 +00:00
|
|
|
inherit
|
|
|
|
(lib.evalModules {
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
options.inner = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
})
|
|
|
|
type
|
|
|
|
;
|
|
|
|
default = { };
|
2024-05-01 22:14:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config.submodule = lib.mkMerge [
|
2024-06-30 08:16:52 +00:00
|
|
|
(
|
|
|
|
{ lib, ... }:
|
|
|
|
{
|
|
|
|
options.outer = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
)
|
2024-05-01 22:14:04 +00:00
|
|
|
{
|
|
|
|
inner = true;
|
|
|
|
outer = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|