offlineimap: add an extraConfig for the account section

This commit is contained in:
Wael M. Nasreddine 2018-11-19 14:04:34 -08:00 committed by Robert Helgesson
parent fa62c5afb6
commit f247b3b99b
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 13 additions and 1 deletions

View file

@ -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 = {};

View file

@ -88,7 +88,8 @@ let
localrepository = "${name}-local";
remoterepository = "${name}-remote";
}
// postSyncHook;
// postSyncHook
// offlineimap.extraConfig.account;
"Repository ${name}-local" = {
type = localType;