1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/modules/programs/astroid-accounts.nix

33 lines
782 B
Nix
Raw Normal View History

{ 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;
2020-02-02 00:39:17 +01:00
default = { };
example = { select_query = ""; };
description = ''
Extra settings to add to this astroid account configuration.
'';
};
};
config = mkIf config.notmuch.enable {
2020-02-02 00:39:17 +01:00
astroid.sendMailCommand = mkIf config.msmtp.enable
(mkOptionDefault "msmtpq --read-envelope-from --read-recipients");
};
}