1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/modules/programs/msmtp/accounts.nix
Austin Horstman 4fca600cb1 treewide: implement auto importing for modules
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>
2025-06-22 23:58:37 -05:00

46 lines
1.3 KiB
Nix

{ lib, ... }:
{
options.msmtp = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable msmtp.
If enabled then it is possible to use the
`--account` command line
option to send a message for a given account using the
{command}`msmtp` or {command}`msmtpq` tool.
For example, {command}`msmtp --account=private` would
send using the account defined in
{option}`accounts.email.accounts.private`. If the
`--account` option is not
given then the primary account will be used.
'';
};
tls.fingerprint = lib.mkOption {
type = lib.types.nullOr (lib.types.strMatching "([[:alnum:]]{2}:)+[[:alnum:]]{2}");
default = null;
example = "my:SH:a2:56:ha:sh";
description = ''
Fingerprint of a trusted TLS certificate.
The fingerprint can be obtained by executing
{command}`msmtp --serverinfo --tls --tls-certcheck=off`.
'';
};
extraConfig = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
default = { };
example = {
auth = "login";
};
description = ''
Extra configuration options to add to {file}`~/.msmtprc`.
See <https://marlam.de/msmtp/msmtprc.txt> for
examples.
'';
};
};
}