feat(whitby): Enable smtprelay module
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>
This commit is contained in:
parent
b53d25ab3f
commit
ea428faf99
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue