1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 00:18:30 +02:00

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;