diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-07 23:43:56 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-07 23:43:56 +0100 |
commit | 614ddbb241e54aafd0f5dc7b05d7cec2363d2710 (patch) | |
tree | 4fdf0214053d9590f211459947877f0171b7dc23 /nixos | |
parent | 295271b546ebb598a27325d86793ed88c63bbde4 (diff) |
use types.nullOr for dispatch.rules
Diffstat (limited to '')
-rw-r--r-- | nixos/modules/services/dispatch.nix | 15 |
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; }; }; }); |