This commit is contained in:
Valentin Gagarin 2025-07-01 15:28:46 +02:00
parent 6ae158bd0f
commit 5a3c6ae08f

View file

@ -42,22 +42,19 @@ in
applications = mkOption { applications = mkOption {
description = "Collection of Fediversity applications"; description = "Collection of Fediversity applications";
type = attrsOf ( type = attrsOf (
submodule ( submodule (application: {
{ config, ... }: class = "fediversity-application";
{ options = {
class = "fediversity-application"; module = mkOption {
options = { description = "Operator-facing configuration options for the application";
module = mkOption { type = deferredModuleWith { staticModules = [ { class = "fediversity-application-config"; } ]; };
description = "Operator-facing configuration options for the application";
type = deferredModuleWith { staticModules = [ { class = "fediversity-application-config"; } ]; };
};
config-mapping = mkOption {
description = "Mapping of application configuration to deployment resources, a description of what an application needs to run";
# TODO: type = (submodule config.module) -> (attrsOf resource)
};
}; };
} config-mapping = mkOption {
) description = "Mapping of application configuration to deployment resources, a description of what an application needs to run";
# TODO: type = (submodule application.config.module) -> (attrsOf (attrTag (map (name: resource: { ${name} = mkOption { type = resource.consumer; }; }) config.resources))) /* something like that */
};
};
})
); );
}; };
environments = mkOption { environments = mkOption {
@ -87,4 +84,7 @@ in
); );
}; };
}; };
}
};
};
} }