about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-27 11:47:02 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-27 11:49:19 -0700
commitaa8a217104461897c1a8f6a49e32994343df6e16 (patch)
treef6bd4629a28fcc898613fbdea1a86e23ef512889 /modules/services
parentfix(gerrit): set the OAUTH client ID (diff)
downloadworld-aa8a217104461897c1a8f6a49e32994343df6e16.tar.gz
feat(gerrit): enable sending emails
Configure gerrit to send emails using fastmail's SMTP servers.

Change-Id: I658373a2c1e9b3c5dcbe214a02ebe8ca1be69580
Reviewed-on: https://cl.fcuny.net/c/world/+/81
Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to '')
-rw-r--r--modules/services/gerrit/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix
index 094e1b1..ed43ce5 100644
--- a/modules/services/gerrit/default.nix
+++ b/modules/services/gerrit/default.nix
@@ -71,7 +71,16 @@ in {
         auth.gitBasicAuthPolicy = "HTTP";
 
         # Receiving email is not currently supported.
-        sendemail = { enable = false; };
+        sendemail = {
+          enable = true;
+          html = false;
+          connectTimeout = "10sec";
+          from = "gerrit <gerrit@fcuny.net>";
+          includeDiff = true;
+          smtpEncryption = "tls";
+          smtpServer = "smtp.fastmail.com";
+          smtpServerPort = 587;
+        };
       };
     };