From ddf47958245a551d36b3186acda4685d7cb02689 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 7 Apr 2021 01:26:44 +0000 Subject: [PATCH] nixos/pomerium: fix useACMEHost useACMEHost doesn't work properly, because I forgot to actually define the variable that is being relied upon here. Oops. --- nixos/modules/services/web-servers/pomerium.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/pomerium.nix b/nixos/modules/services/web-servers/pomerium.nix index a96df1dbf6de..2bc7d01c7c28 100644 --- a/nixos/modules/services/web-servers/pomerium.nix +++ b/nixos/modules/services/web-servers/pomerium.nix @@ -119,7 +119,7 @@ in before = [ "acme-finished-${cfg.useACMEHost}.target" ]; after = [ "acme-${cfg.useACMEHost}.service" ]; # Block reloading if not all certs exist yet. - unitConfig.ConditionPathExists = [ "${certs.${cfg.useACMEHost}.directory}/fullchain.pem" ]; + unitConfig.ConditionPathExists = [ "${config.security.acme.certs.${cfg.useACMEHost}.directory}/fullchain.pem" ]; serviceConfig = { Type = "oneshot"; TimeoutSec = 60;