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