mbsync: add option to add extra account configuration
This commit is contained in:
parent
36da7a918f
commit
5770dc58b9
|
@ -89,5 +89,19 @@ in
|
||||||
Remote store extra configuration.
|
Remote store extra configuration.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig.account = mkOption {
|
||||||
|
type = extraConfigType;
|
||||||
|
default = {};
|
||||||
|
example = literalExample ''
|
||||||
|
{
|
||||||
|
PipelineDepth = 10;
|
||||||
|
Timeout = 60;
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Account section extra configuration.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,6 +60,7 @@ let
|
||||||
}
|
}
|
||||||
// genTlsConfig imap.tls
|
// genTlsConfig imap.tls
|
||||||
// optionalAttrs (imap.port != null) { Port = toString imap.port; }
|
// optionalAttrs (imap.port != null) { Port = toString imap.port; }
|
||||||
|
// mbsync.extraConfig.account
|
||||||
)
|
)
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ genSection "IMAPStore ${name}-remote" (
|
+ genSection "IMAPStore ${name}-remote" (
|
||||||
|
|
Loading…
Reference in a new issue