mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
c1d8d2a3d1
The NixOS variant of Markdown doesn't make a distinction between `<code>` and `<literal>` or `<quote>` and... quotes, and doesn't support `<parameter>` or `<replaceable>`. These are infrequently used (apart from `<code>`) and don't add much, so just convert them to simpler forms to allow the options containing them to be converted to Markdown automatically. A few minor syntactic adjustments were also made to make `nix-doc-munge`'s job easier.
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.msmtp = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable msmtp.
|
|
</para><para>
|
|
If enabled then it is possible to use the
|
|
<literal>--account</literal> command line
|
|
option to send a message for a given account using the
|
|
<command>msmtp</command> or <command>msmtpq</command> tool.
|
|
For example, <command>msmtp --account=private</command> would
|
|
send using the account defined in
|
|
<option>accounts.email.accounts.private</option>. If the
|
|
<literal>--account</literal> option is not
|
|
given then the primary account will be used.
|
|
'';
|
|
};
|
|
|
|
tls.fingerprint = mkOption {
|
|
type =
|
|
types.nullOr (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</command>.
|
|
'';
|
|
};
|
|
|
|
extraConfig = mkOption {
|
|
type = types.attrsOf types.str;
|
|
default = { };
|
|
example = { auth = "login"; };
|
|
description = ''
|
|
Extra configuration options to add to <filename>~/.msmtprc</filename>.
|
|
See <link xlink:href="https://marlam.de/msmtp/msmtprc.txt"/> for
|
|
examples.
|
|
'';
|
|
};
|
|
};
|
|
}
|