diff --git a/modules/programs/offlineimap-accounts.nix b/modules/programs/offlineimap-accounts.nix index 1900617c..015a5974 100644 --- a/modules/programs/offlineimap-accounts.nix +++ b/modules/programs/offlineimap-accounts.nix @@ -12,6 +12,17 @@ in options.offlineimap = { enable = mkEnableOption "OfflineIMAP"; + extraConfig.account = mkOption { + type = extraConfigType; + default = {}; + example = { + autorefresh = 20; + }; + description = '' + Extra configuration options to add to the account section. + ''; + }; + extraConfig.local = mkOption { type = extraConfigType; default = {}; diff --git a/modules/programs/offlineimap.nix b/modules/programs/offlineimap.nix index 7a1b5734..82143b63 100644 --- a/modules/programs/offlineimap.nix +++ b/modules/programs/offlineimap.nix @@ -88,7 +88,8 @@ let localrepository = "${name}-local"; remoterepository = "${name}-remote"; } - // postSyncHook; + // postSyncHook + // offlineimap.extraConfig.account; "Repository ${name}-local" = { type = localType;