evaluate deployment a bit further

allowed fixing a few types, tho bad input types still work, and needs
commenting readOnly
This commit is contained in:
Kiara Grouwstra 2025-08-16 14:13:38 +02:00
parent ed240f0db1
commit e91061e69c
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
3 changed files with 3 additions and 2 deletions

View file

@ -185,6 +185,7 @@ in
deploymentFunction = lib.isFunction result.deploymentFunction;
getProviders = lib.isFunction result.getProviders;
};
deploy = lib.isFunction fediversity.deployments.example.deployment;
};
expected = {
number-of-resources = 1;

View file

@ -142,7 +142,7 @@ in
resource-mapping = mkOption {
description = "Function type for the mapping from resources to a (NixOps4) deployment";
type = functionType;
readOnly = true;
# readOnly = true;
default = {
input-type = application-resources;
output-type = nixops4Deployment;

View file

@ -20,7 +20,7 @@ submodule (function: {
};
function-type = mkOption {
type = optionType;
readOnly = true;
# readOnly = true;
default = functionTo (submodule {
options = {
input = mkOption {