1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-25 07:58:31 +02:00

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}
${concatStringsSep "\n\n" (map accountStr mailAccounts)}
${cfg.extraAccounts}
'';
in {
@ -53,6 +55,15 @@ in {
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 {