summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/dispatch.nix15
1 files changed, 7 insertions, 8 deletions
diff --git a/nixos/modules/services/dispatch.nix b/nixos/modules/services/dispatch.nix
index c5f8005..168e456 100644
--- a/nixos/modules/services/dispatch.nix
+++ b/nixos/modules/services/dispatch.nix
@@ -36,33 +36,32 @@ in {
example = "/gitolite-repo-updated";
};
formValues = mkOption {
- type = types.attrsOf types.str;
+ type = types.nullOr (types.attrsOf types.str);
example = {
repo = "catbus-web-ui";
};
- default = {};
+ default = null;
};
};
});
- default = [];
};
actions = mkOption {
- type = types.listOf (types.submodule {
+ type = types.nullOr (types.listOf (types.submodule {
options = {
url = mkOption {
type = types.str;
example = "https://build.eth.moe/deploy";
};
formValues = mkOption {
- type = types.attrsOf types.str;
+ type = types.nullOr (types.attrsOf types.str);
example = {
project = "catbus-web-ui";
};
- default = {};
+ default = null;
};
};
- });
- default = [];
+ }));
+ default = null;
};
};
});