diff options
Diffstat (limited to 'ops/nixos')
-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 |