forked from fediversity/fediversity
Compare commits
2 commits
c6f82f2e0a
...
06a8b24e7a
| Author | SHA1 | Date | |
|---|---|---|---|
| 06a8b24e7a | |||
| e83dc97edb |
3 changed files with 8 additions and 4 deletions
|
|
@ -182,6 +182,7 @@ in
|
||||||
};
|
};
|
||||||
deployment = {
|
deployment = {
|
||||||
inherit (result) _type;
|
inherit (result) _type;
|
||||||
|
isModule = lib.isFunction fediversity.deployments.example.deployment;
|
||||||
deploymentFunction = lib.isFunction result.deploymentFunction;
|
deploymentFunction = lib.isFunction result.deploymentFunction;
|
||||||
getProviders = lib.isFunction result.getProviders;
|
getProviders = lib.isFunction result.getProviders;
|
||||||
};
|
};
|
||||||
|
|
@ -204,6 +205,7 @@ in
|
||||||
_type = "nixops4Deployment";
|
_type = "nixops4Deployment";
|
||||||
deploymentFunction = true;
|
deploymentFunction = true;
|
||||||
getProviders = true;
|
getProviders = true;
|
||||||
|
isModule = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,8 @@ in
|
||||||
type = functionType;
|
type = functionType;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default = {
|
default = {
|
||||||
input-type = submodule application.config.module;
|
# input-type = submodule application.config.module;
|
||||||
|
input-type = types.int;
|
||||||
output-type = application-resources;
|
output-type = application-resources;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -142,9 +143,10 @@ in
|
||||||
resource-mapping = mkOption {
|
resource-mapping = mkOption {
|
||||||
description = "Function type for the mapping from resources to a (NixOps4) deployment";
|
description = "Function type for the mapping from resources to a (NixOps4) deployment";
|
||||||
type = functionType;
|
type = functionType;
|
||||||
readOnly = true;
|
# readOnly = true;
|
||||||
default = {
|
default = {
|
||||||
input-type = application-resources;
|
# input-type = application-resources;
|
||||||
|
input-type = types.int;
|
||||||
output-type = nixops4Deployment;
|
output-type = nixops4Deployment;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ submodule (function: {
|
||||||
};
|
};
|
||||||
function-type = mkOption {
|
function-type = mkOption {
|
||||||
type = optionType;
|
type = optionType;
|
||||||
readOnly = true;
|
# readOnly = true;
|
||||||
default = functionTo (submodule {
|
default = functionTo (submodule {
|
||||||
options = {
|
options = {
|
||||||
input = mkOption {
|
input = mkOption {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue