diff options
author | Vincent Ambo <mail@tazj.in> | 2021-12-09T13·53+0300 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2021-12-10T07·32+0300 |
commit | 496d8994287f27f93f08ac847e430a6f2dfc94bd (patch) | |
tree | 1bc4215f1b0f36b1d5af3e222bc69c305777af69 /ops/machines | |
parent | 4870b1a2ff8cec7f7e0ce9be1cb25e0ba463e3d3 (diff) |
feat(ops/secrets): Configure secrets for gerrit-queue r/3173
Adds a systemd EnvironmentFile secret that contains the Gerrit username & password for gerrit-queue. Change-Id: I25acf87764c26774045138402b8a417b6813ee8f
Diffstat (limited to 'ops/machines')
-rw-r--r-- | ops/machines/whitby/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix index 78945a74174b..82b3bc37cf4a 100644 --- a/ops/machines/whitby/default.nix +++ b/ops/machines/whitby/default.nix @@ -40,6 +40,7 @@ in { "${depot.path}/ops/modules/www/tvl.fyi.nix" "${depot.path}/ops/modules/www/tvl.su.nix" "${depot.path}/ops/modules/www/wigglydonke.rs.nix" + "${depot.third_party.agenix.src}/modules/age.nix" "${pkgs.path}/nixos/modules/services/web-apps/gerrit.nix" ]; @@ -201,6 +202,11 @@ in { challengeResponseAuthentication = false; }; + # Configure secrets for services that need them. + age.secrets = { + gerrit-queue.file = depot.path.origSrc + "/ops/secrets/gerrit-queue.age"; + }; + # Automatically collect garbage from the Nix store. services.depot.automatic-gc = { enable = true; |