fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Damien Cassouofflineimap: cleanup unused bindings455cc8cf

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