diff --git a/modules/programs/mbsync-accounts.nix b/modules/programs/mbsync-accounts.nix index 4a1a51c49..c586481df 100644 --- a/modules/programs/mbsync-accounts.nix +++ b/modules/programs/mbsync-accounts.nix @@ -89,5 +89,19 @@ in Remote store extra configuration. ''; }; + + extraConfig.account = mkOption { + type = extraConfigType; + default = {}; + example = literalExample '' + { + PipelineDepth = 10; + Timeout = 60; + }; + ''; + description = '' + Account section extra configuration. + ''; + }; }; } diff --git a/modules/programs/mbsync.nix b/modules/programs/mbsync.nix index fc8503778..060bec83f 100644 --- a/modules/programs/mbsync.nix +++ b/modules/programs/mbsync.nix @@ -60,6 +60,7 @@ let } // genTlsConfig imap.tls // optionalAttrs (imap.port != null) { Port = toString imap.port; } + // mbsync.extraConfig.account ) + "\n" + genSection "IMAPStore ${name}-remote" (