From f567ea8228e0ce718871d7346e444dd15ad702e5 Mon Sep 17 00:00:00 2001 From: Vonfry Date: Thu, 8 Apr 2021 19:01:55 +0800 Subject: [PATCH] msmtp: add extraAccounts option It is appended to the end of msmtprc instead of top like extraConfig. --- modules/programs/msmtp.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/programs/msmtp.nix b/modules/programs/msmtp.nix index f7745d33b..7c1ee0d3c 100644 --- a/modules/programs/msmtp.nix +++ b/modules/programs/msmtp.nix @@ -37,6 +37,8 @@ let ${cfg.extraConfig} ${concatStringsSep "\n\n" (map accountStr mailAccounts)} + + ${cfg.extraAccounts} ''; in { @@ -53,6 +55,15 @@ in { See for examples. ''; }; + + extraAccounts = mkOption { + type = types.lines; + default = ""; + description = '' + Extra configuration lines to add to the end of ~/.msmtprc. + See for examples. + ''; + }; }; accounts.email.accounts = mkOption {