have run-time environments use their corresponding run-time configurations

This commit is contained in:
Kiara Grouwstra 2025-06-23 09:34:59 +02:00
parent 8b2ee21dbe
commit c1f3aa6aed
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

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 = [