2020-01-22 00:52:01 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.neomutt = {
|
|
|
|
enable = mkEnableOption "NeoMutt";
|
|
|
|
|
|
|
|
sendMailCommand = mkOption {
|
|
|
|
type = types.nullOr types.str;
|
2020-02-16 23:08:37 +01:00
|
|
|
default = if config.msmtp.enable then
|
|
|
|
"msmtpq --read-envelope-from --read-recipients"
|
|
|
|
else
|
|
|
|
null;
|
|
|
|
defaultText = literalExample ''
|
|
|
|
if config.msmtp.enable then
|
|
|
|
"msmtpq --read-envelope-from --read-recipients"
|
|
|
|
else
|
|
|
|
null
|
|
|
|
'';
|
2020-01-22 00:52:01 +01:00
|
|
|
example = "msmtpq --read-envelope-from --read-recipients";
|
|
|
|
description = ''
|
|
|
|
Command to send a mail. If not set, neomutt will be in charge of sending mails.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = mkOption {
|
|
|
|
type = types.lines;
|
|
|
|
default = "";
|
|
|
|
example = "color status cyan default";
|
|
|
|
description = ''
|
|
|
|
Extra lines to add to the folder hook for this account.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|