mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
Reduce maintenance burden and increase efficiency by automatically importing modules following a specific convention. Co-authored-by: awwpotato <awwpotato@voidq.com> Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
32 lines
826 B
Nix
32 lines
826 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.astroid = {
|
|
enable = lib.mkEnableOption "Astroid";
|
|
|
|
sendMailCommand = lib.mkOption {
|
|
type = lib.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 = lib.mkOption {
|
|
type = lib.types.attrsOf lib.types.anything;
|
|
default = { };
|
|
example = {
|
|
select_query = "";
|
|
};
|
|
description = ''
|
|
Extra settings to add to this astroid account configuration.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.notmuch.enable {
|
|
astroid.sendMailCommand = lib.mkIf config.msmtp.enable (
|
|
lib.mkOptionDefault "msmtpq --read-envelope-from --read-recipients"
|
|
);
|
|
};
|
|
}
|