diff options
author | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2018-11-19 14:04:34 -0800 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2018-11-19 23:57:58 +0100 |
commit | f247b3b99ba0b6b69a21d2c765a7002fc40ae103 (patch) | |
tree | ca45cef5ac6f6a8d5142786c0947f24d26ce1bac | |
parent | fa62c5afb67fd8570fbff37d9bdf91357ba8913e (diff) |
offlineimap: add an extraConfig for the account section
-rw-r--r-- | modules/programs/offlineimap-accounts.nix | 11 | ||||
-rw-r--r-- | modules/programs/offlineimap.nix | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/modules/programs/offlineimap-accounts.nix b/modules/programs/offlineimap-accounts.nix index 1900617ca11..015a5974ab3 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 7a1b5734bbb..82143b630ad 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; |