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 {