nixos/listmonk: fixing datatype of options

This commit is contained in:
revol-xut 2023-08-31 21:50:33 +02:00 committed by Yaya
parent 08e65c3723
commit 6f50091de7

View file

@ -54,7 +54,7 @@ let
smtp = mkOption {
type = listOf (submodule {
freeformType = with types; attrsOf (oneOf [ str int bool ]);
freeformType = with types; attrsOf anything;
options = {
enabled = mkEnableOption (lib.mdDoc "this SMTP server for listmonk");
@ -86,7 +86,7 @@ let
# TODO: refine this type based on the smtp one.
"bounce.mailboxes" = mkOption {
type = listOf
(submodule { freeformType = with types; oneOf [ str int bool ]; });
(submodule { freeformType = with types; listOf (attrsOf anything); });
default = [ ];
description = lib.mdDoc "List of bounce mailboxes";
};