diff options
author | Vincent Ambo <mail@tazj.in> | 2020-07-11T11·51+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-07-11T11·58+0000 |
commit | ea428faf99f1ab3ca69718aba1041838bb983b3b (patch) | |
tree | 0bbbbe98d6f9125d205c0943c9c8d8d7be9da8c5 /ops/nixos/whitby | |
parent | b53d25ab3f46a947bdcb11a0790fc08110da8cd8 (diff) |
feat(whitby): Enable smtprelay module r/1256
This is required for the Gerrit setup. Change-Id: I02e03dafe36e6c47ffabf4d590e0c6f1dea027e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1061 Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'ops/nixos/whitby')
-rw-r--r-- | ops/nixos/whitby/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix index e909f4d1f661..38a9f9a55062 100644 --- a/ops/nixos/whitby/default.nix +++ b/ops/nixos/whitby/default.nix @@ -16,9 +16,10 @@ in { inherit depot; imports = [ "${depot.depotPath}/ops/nixos/depot.nix" + "${depot.depotPath}/ops/nixos/smtprelay.nix" "${depot.depotPath}/ops/nixos/tvl-slapd/default.nix" - "${depot.depotPath}/ops/nixos/www/login.tvl.fyi.nix" "${depot.depotPath}/ops/nixos/tvl-sso/default.nix" + "${depot.depotPath}/ops/nixos/www/login.tvl.fyi.nix" ]; hardware = { @@ -152,6 +153,17 @@ in { }; }) (range 1 8)); + # Start a local SMTP relay to Gmail (used by gerrit) + services.depot.smtprelay = { + enable = true; + args = { + listen = ":2525"; + remote_host = "smtp.gmail.com:587"; + remote_auth = "plain"; + remote_user = "tvlbot@tazj.in"; + }; + }; + environment.systemPackages = with nixpkgs; [ bb curl |