From 0b4aa2e084126e02d13a52e6a59f04bf3502597d Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Mon, 21 Jul 2025 22:13:31 +0200 Subject: [PATCH] [HACK] unwire deployment resource-mapping output-type, fixes `error: Expected a module, but found a value of type "option-type"` --- deployment/data-model.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/data-model.nix b/deployment/data-model.nix index 09a6ea1b..83c540d7 100644 --- a/deployment/data-model.nix +++ b/deployment/data-model.nix @@ -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: