offlineimap: add an extraConfig for the account section
This commit is contained in:
parent
fa62c5afb6
commit
f247b3b99b
|
@ -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 = {};
|
||||
|
|
|
@ -88,7 +88,8 @@ let
|
|||
localrepository = "${name}-local";
|
||||
remoterepository = "${name}-remote";
|
||||
}
|
||||
// postSyncHook;
|
||||
// postSyncHook
|
||||
// offlineimap.extraConfig.account;
|
||||
|
||||
"Repository ${name}-local" = {
|
||||
type = localType;
|
||||
|
|
Loading…
Reference in a new issue