diff --git a/modules/services/imapnotify-accounts.nix b/modules/services/imapnotify-accounts.nix index 94bdce5df..5d8418310 100644 --- a/modules/services/imapnotify-accounts.nix +++ b/modules/services/imapnotify-accounts.nix @@ -29,5 +29,12 @@ with lib; example = [ "Inbox" "[Gmail]/MyLabel" ]; description = "IMAP folders to watch."; }; + + extraConfig = mkOption { + type = with types; attrsOf (oneOf [ bool int str ]); + default = { }; + example = { wait = 10; }; + description = "Additional configuration to add for this account."; + }; }; } diff --git a/modules/services/imapnotify.nix b/modules/services/imapnotify.nix index 209dc3151..d33124522 100644 --- a/modules/services/imapnotify.nix +++ b/modules/services/imapnotify.nix @@ -56,7 +56,7 @@ let onNewMail = account.imapnotify.onNotify; } // optionalAttrs (account.imapnotify.onNotifyPost != "") { onNewMailPost = account.imapnotify.onNotifyPost; - })); + } // account.imapnotify.extraConfig)); in { meta.maintainers = [ maintainers.nickhu ];