mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 08:09:45 +01:00
22568a3d26
This reverts the commits - "alot: change msmtp default command"8e798e4c28
- "astroid: init"736e340bde
because they include changes that break some configurations and some options that are misplaced.
32 lines
727 B
Nix
32 lines
727 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.alot = {
|
|
sendMailCommand = mkOption {
|
|
type = types.nullOr types.str;
|
|
description = ''
|
|
Command to send a mail. If msmtp is enabled for the account,
|
|
then this is set to
|
|
<command>msmtpq --read-envelope-from --read-recipients</command>.
|
|
'';
|
|
};
|
|
|
|
extraConfig = mkOption {
|
|
type = types.lines;
|
|
default = "";
|
|
description = ''
|
|
Extra settings to add to this Alot account configuration.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf config.notmuch.enable {
|
|
alot.sendMailCommand = mkOptionDefault (
|
|
if config.msmtp.enable
|
|
then "msmtpq --read-envelope-from --read-recipients"
|
|
else null
|
|
);
|
|
};
|
|
}
|