[HACK] unwire deployment resource-mapping output-type, fixes error: Expected a module, but found a value of type "option-type"

This commit is contained in:
Kiara Grouwstra 2025-07-21 22:13:31 +02:00
parent 91c5d16f06
commit 0b4aa2e084
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -149,7 +149,7 @@ in
};
implementation = mkOption {
description = "Mapping of resources required by applications to available resources; the result can be deployed";
type = functionTo environment.config.resource-mapping.output-type;
type = functionTo raw;
};
resource-mapping = mkOption {
description = "Function type for the mapping from resources to a (NixOps4) deployment";
@ -165,7 +165,7 @@ in
};
deployment = mkOption {
description = "Generate a deployment from a configuration";
type = functionTo (submodule environment.config.resource-mapping.output-type);
type = functionTo raw;
readOnly = true;
default =
cfg: