1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
home-manager/modules/programs/neomutt-accounts.nix
Robert Helgesson 0fa829cd11
wip
2018-11-29 00:46:44 +01:00

43 lines
919 B
Nix

{ config, lib, ... }:
with lib;
{
options.neomutt = {
enable = mkOption {
type = types.enum [ "none" "maildir" "imap" ];
default = "none";
description = ''
Whether to enable this account in NeoMutt and which
account protocol to use.
'';
};
imap.idle = mkOption {
type = types.bool;
default = false;
description = ''
If set, NeoMutt will attempt to use the IDLE extension.
'';
};
mailboxes = mkOption {
type = types.listOf types.str;
default = [];
example = ["github" "Lists/nix" "Lists/haskell-cafe"];
description = ''
A list of mailboxes.
'';
};
extraConfig = mkOption {
type = types.lines;
default = "";
example = "color status cyan default";
description = ''
Extra lines to add to the folder hook for this account.
'';
};
};
}