Compare commits

...

2 commits

Author SHA1 Message Date
06a8b24e7a
swap out the input types to hopefully trigger an evaluation error - unfortunately does not seem to work yet 2025-08-16 14:25:40 +02:00
e83dc97edb
evaluate deployment a bit further
allowed fixing a few types, tho bad input types still work, and needs
commenting readOnly
2025-08-16 14:25:26 +02:00
3 changed files with 8 additions and 4 deletions

View file

@ -182,6 +182,7 @@ in
};
deployment = {
inherit (result) _type;
isModule = lib.isFunction fediversity.deployments.example.deployment;
deploymentFunction = lib.isFunction result.deploymentFunction;
getProviders = lib.isFunction result.getProviders;
};
@ -204,6 +205,7 @@ in
_type = "nixops4Deployment";
deploymentFunction = true;
getProviders = true;
isModule = false;
};
};
};

View file

@ -108,7 +108,8 @@ in
type = functionType;
readOnly = true;
default = {
input-type = submodule application.config.module;
# input-type = submodule application.config.module;
input-type = types.int;
output-type = application-resources;
};
};
@ -142,9 +143,10 @@ 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;
# input-type = application-resources;
input-type = types.int;
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 {