From da8b6bac414324915dac3903da74c0f87b93fa86 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Wed, 27 Aug 2025 12:26:54 +0200 Subject: [PATCH] move function submodule type --- deployment/data-model.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/data-model.nix b/deployment/data-model.nix index 412f9bae..2a1818ac 100644 --- a/deployment/data-model.nix +++ b/deployment/data-model.nix @@ -15,7 +15,7 @@ let functionTo ; - functionType = import ./function.nix; + functionType = submodule ./function.nix; application-resources = submodule { options.resources = mkOption { # TODO: maybe transpose, and group the resources by type instead @@ -116,7 +116,7 @@ in # TODO(@fricklerhandwerk): this needs a better name, it's just the type config-mapping = mkOption { description = "Function type for the mapping from application configuration to required resources"; - type = submodule functionType; + type = functionType; readOnly = true; default = { input-type = submodule application.config.module; @@ -152,7 +152,7 @@ in }; resource-mapping = mkOption { description = "Function type for the mapping from resources to a deployment"; - type = submodule functionType; + type = functionType; readOnly = true; default = { input-type = application-resources;