msmtp: add extraAccounts option

It is appended to the end of msmtprc instead of top like extraConfig.
This commit is contained in:
Vonfry 2021-04-08 19:01:55 +08:00 committed by Robert Helgesson
parent 17a10287d2
commit f567ea8228
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -37,6 +37,8 @@ let
${cfg.extraConfig} ${cfg.extraConfig}
${concatStringsSep "\n\n" (map accountStr mailAccounts)} ${concatStringsSep "\n\n" (map accountStr mailAccounts)}
${cfg.extraAccounts}
''; '';
in { in {
@ -53,6 +55,15 @@ in {
See <link xlink:href="https://marlam.de/msmtp/msmtprc.txt"/> for examples. See <link xlink:href="https://marlam.de/msmtp/msmtprc.txt"/> for examples.
''; '';
}; };
extraAccounts = mkOption {
type = types.lines;
default = "";
description = ''
Extra configuration lines to add to the end of <filename>~/.msmtprc</filename>.
See <link xlink:href="https://marlam.de/msmtp/msmtprc.txt"/> for examples.
'';
};
}; };
accounts.email.accounts = mkOption { accounts.email.accounts = mkOption {