revert submodule wrapper to align with module functions already doing types #2

Closed
kiara wants to merge 37 commits from kiara/Fediversity:fix-submodule-type into main
Showing only changes of commit c1f3aa6aed - Show all commits

View file

@ -18,24 +18,31 @@ let
_class = "nixos";
};
};
runtime-environment = attrTag {
nixos = mkOption {
runtime-environment = attrTag (
mapAttrs
(
name: options:
mkOption {
type = submoduleWith {
modules = [
{
options = {
options = options // {
module = mkOption {
description = "The NixOS module of the run-time environment";
type = deferredModule;
default = config.runtime-configurations.nixos;
default = config.runtime-configurations.${name};
readOnly = true;
};
};
}
];
};
};
};
}
)
{
nixos = { };
}
);
application = submoduleWith {
description = "A Fediversity application";
modules = [