fork/home-manager
git clone https://git.julia.blue/fork/home-manager
455cc8cf
master
1{ lib , ...} : 2 3with lib ; 4 5let 6 7extraConfigType = with types ; attrsOf ( either ( either str int ) bool ); 8 9in { 10options . offlineimap = { 11enable = mkEnableOption "OfflineIMAP" ; 12 13extraConfig . account = mkOption { 14type = extraConfigType ; 15default = { }; 16example = { autorefresh = 20 ; }; 17description = '' 18Extra configuration options to add to the account section. 19'' ; 20}; 21 22extraConfig . local = mkOption { 23type = extraConfigType ; 24default = { }; 25example = { sync_deletes = true ; }; 26description = '' 27Extra configuration options to add to the local account 28section. 29'' ; 30}; 31 32extraConfig . remote = mkOption { 33type = extraConfigType ; 34default = { }; 35example = { 36maxconnections = 2 ; 37expunge = false ; 38}; 39description = '' 40Extra configuration options to add to the remote account 41section. 42'' ; 43}; 44 45postSyncHookCommand = mkOption { 46type = types . lines ; 47default = "" ; 48description = "Command to run after fetching new mails." ; 49}; 50}; 51}