From 5961c64e03bfbd18cbdf2c25960b652b46437704 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 18 Oct 2021 09:34:51 +0200 Subject: [PATCH] imapnotify: add `extraConfig` account option --- modules/services/imapnotify-accounts.nix | 7 +++++++ modules/services/imapnotify.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 ];