diff --git a/modules/programs/mbsync-accounts.nix b/modules/programs/mbsync-accounts.nix
index 3d3a44890..3b26455db 100644
--- a/modules/programs/mbsync-accounts.nix
+++ b/modules/programs/mbsync-accounts.nix
@@ -76,6 +76,19 @@ let
INBOX.
'';
};
+
+ patterns = mkOption {
+ type = types.listOf types.str;
+ default = [ ];
+ example = [ "INBOX" ];
+ description = ''
+ Instead of synchronizing just the mailboxes that
+ match the masterPattern, use it as a prefix which is
+ not matched against the patterns, and is not affected by mailbox list
+ overrides.
+ '';
+ };
+
};
};