Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
da8b6bac41
move function submodule type
All checks were successful
/ check-pre-commit (pull_request) Successful in 15s
/ check-data-model (pull_request) Successful in 33s
/ check-mastodon (pull_request) Successful in 22s
/ check-peertube (pull_request) Successful in 22s
/ check-panel (pull_request) Successful in 1m30s
/ check-proxmox-basic (pull_request) Successful in 37s
/ check-deployment-basic (pull_request) Successful in 34s
/ check-deployment-cli (pull_request) Successful in 46s
/ check-deployment-panel (pull_request) Successful in 1m53s
/ check-resources (pull_request) Successful in 4m18s
2025-09-03 12:52:20 +02:00

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
@ -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;