forked from Fediversity/Fediversity
revert submodule
wrapper to align with module functions already doing types #2
3 changed files with 9 additions and 9 deletions
|
@ -164,7 +164,8 @@ in
|
|||
{
|
||||
inherit (fediversity) example-deployment;
|
||||
};
|
||||
expected = {
|
||||
expected =
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ let
|
|||
;
|
||||
|
||||
functionType = import ./function.nix;
|
||||
application-resources = {
|
||||
application-resources = submodule {
|
||||
options.resources = mkOption {
|
||||
# TODO: maybe transpose, and group the resources by type instead
|
||||
type = attrsOf (
|
||||
|
@ -25,7 +25,7 @@ let
|
|||
);
|
||||
};
|
||||
};
|
||||
nixops4Deployment = inputs.nixops4.modules.nixops4Deployment.default;
|
||||
nixops4Deployment = submodule inputs.nixops4.modules.nixops4Deployment.default;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
let
|
||||
inherit (lib) mkOption types;
|
||||
inherit (types)
|
||||
deferredModule
|
||||
submodule
|
||||
functionTo
|
||||
optionType
|
||||
|
@ -14,10 +13,10 @@ in
|
|||
{
|
||||
options = {
|
||||
input-type = mkOption {
|
||||
type = deferredModule;
|
||||
type = optionType;
|
||||
};
|
||||
output-type = mkOption {
|
||||
type = deferredModule;
|
||||
type = optionType;
|
||||
};
|
||||
function-type = mkOption {
|
||||
type = optionType;
|
||||
|
@ -26,10 +25,10 @@ in
|
|||
submodule (function: {
|
||||
options = {
|
||||
input = mkOption {
|
||||
type = submodule config.input-type;
|
||||
type = config.input-type;
|
||||
};
|
||||
output = mkOption {
|
||||
type = submodule config.output-type;
|
||||
type = config.output-type;
|
||||
};
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue