From fb3c246fe07730a900cf27340830a1c0f8f3ae24 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Sat, 27 Jun 2020 02:21:24 +0200 Subject: [PATCH] mbsync: add extraConfig option for easier-to-format options These are options that can be handled by the `genSection` function in the `genAccountFunction`, so they are left to the user to decide. Most of these are made on a global basis anyways. --- modules/programs/mbsync-accounts.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/programs/mbsync-accounts.nix b/modules/programs/mbsync-accounts.nix index 3b26455db..9db21331a 100644 --- a/modules/programs/mbsync-accounts.nix +++ b/modules/programs/mbsync-accounts.nix @@ -89,6 +89,22 @@ let ''; }; + extraConfig = mkOption { + type = extraConfigType; + default = { }; + example = '' + { + Create = "both"; + CopyArrivalDate = "yes"; + MaxMessages = 10000; + MaxSize = "1m"; + } + ''; + description = '' + Extra configuration lines to add to THIS channel's + configuration. + ''; + }; }; };