75fa0ae5af
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
32 lines
782 B
Nix
32 lines
782 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.astroid = {
|
|
enable = mkEnableOption "Astroid";
|
|
|
|
sendMailCommand = mkOption {
|
|
type = 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`.
|
|
'';
|
|
};
|
|
|
|
extraConfig = mkOption {
|
|
type = types.attrsOf types.anything;
|
|
default = { };
|
|
example = { select_query = ""; };
|
|
description = ''
|
|
Extra settings to add to this astroid account configuration.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf config.notmuch.enable {
|
|
astroid.sendMailCommand = mkIf config.msmtp.enable
|
|
(mkOptionDefault "msmtpq --read-envelope-from --read-recipients");
|
|
};
|
|
}
|