msmtp: add extraAccounts option
It is appended to the end of msmtprc instead of top like extraConfig.
This commit is contained in:
parent
17a10287d2
commit
f567ea8228
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue