fork/home-manager

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

Robert HelgessonMerge PR #421575790441

master
1.2 KiB49 linesraw
1{ config, lib, ... }:
2
3with lib;
4
5{
6  options.getmail = {
7    enable = mkEnableOption "the getmail mail retriever for this account";
8
9    destinationCommand = mkOption {
10      type = types.nullOr types.str;
11      default = null;
12      example = "\${pkgs.maildrop}/bin/maildrop";
13      description = ''
14        Specify a command delivering the incoming mail to your maildir.
15      '';
16    };
17
18    mailboxes = mkOption {
19      type = types.nonEmptyListOf types.str;
20      default = [ ];
21      example = [ "INBOX" "INBOX.spam" ];
22      description = ''
23        A non-empty list of mailboxes. To download all mail you can
24        use the `ALL` mailbox.
25      '';
26    };
27
28    delete = mkOption {
29      type = types.bool;
30      default = false;
31      description = ''
32        Enable if you want to delete read messages from the server. Most
33        users should either enable `delete` or disable
34        `readAll`.
35      '';
36    };
37
38    readAll = mkOption {
39      type = types.bool;
40      default = true;
41      description = ''
42        Enable if you want to fetch all, even the read messages from the
43        server. Most users should either enable `delete` or
44        disable `readAll`.
45      '';
46    };
47
48  };
49}