about summary refs log tree commit diff
path: root/ops/nixos/modules
diff options
context:
space:
mode:
Diffstat (limited to 'ops/nixos/modules')
-rw-r--r--ops/nixos/modules/monorepo-gerrit.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/ops/nixos/modules/monorepo-gerrit.nix b/ops/nixos/modules/monorepo-gerrit.nix
index b51a6d8b294c..174c59948e29 100644
--- a/ops/nixos/modules/monorepo-gerrit.nix
+++ b/ops/nixos/modules/monorepo-gerrit.nix
@@ -45,6 +45,25 @@ in {
         # TODO(tazjin): Assuming this is what we'll be doing ...
         groupMemberPattern = "(&(objectClass=group)(member=\${dn}))";
       };
+
+      # Email sending (emails are relayed via the tazj.in domain's
+      # GSuite currently).
+      #
+      # Note that sendemail.smtpPass is stored in
+      # $site_path/etc/secure.config and is *not* controlled by Nix.
+      #
+      # Receiving email is not currently supported.
+      sendemail = {
+        enable = true;
+        html = false;
+        connectTimeout = "30sec";
+        from = "TVL Code Review <tvlbot@tazj.in>";
+        includeDiff = true;
+        smtpEncryption = "tls";
+        smtpServer = "smtp.gmail.com";
+        smtpServerPort = 587;
+        smtpUser = "tvlbot@tazj.in";
+      };
     };
   };