forked from Fediversity/Fediversity
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:
parent
ed240f0db1
commit
e83dc97edb
3 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -20,7 +20,7 @@ submodule (function: {
|
|||
};
|
||||
function-type = mkOption {
|
||||
type = optionType;
|
||||
readOnly = true;
|
||||
# readOnly = true;
|
||||
default = functionTo (submodule {
|
||||
options = {
|
||||
input = mkOption {
|
||||
|
|
Loading…
Add table
Reference in a new issue