move function submodule type

This commit is contained in:
Kiara Grouwstra 2025-08-27 12:26:54 +02:00
parent 9d903f3ef7
commit 464c7adc70
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -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
@ -110,7 +110,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;
@ -146,7 +146,7 @@ in
};
resource-mapping = mkOption {
description = "Function type for the mapping from resources to a (NixOps4) deployment";
type = submodule functionType;
type = functionType;
readOnly = true;
default = {
input-type = application-resources;