environment: fix implementation type

This commit is contained in:
Kiara Grouwstra 2025-07-20 17:17:51 +02:00
parent 3efe6f347f
commit 9b5eb50fbc
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -150,7 +150,10 @@ in
};
implementation = mkOption {
description = "Mapping of resources required by applications to available resources; the result can be deployed";
type = environment.config.resource-mapping.function-type;
type = functionTo (submoduleWith {
class = "nixops4Deployment";
modules = [ environment.config.resource-mapping.output-type ];
});
};
resource-mapping = mkOption {
description = "Function type for the mapping from resources to a (NixOps4) deployment";