From bdfeb1d9f4334b5d170de338c080897995c6d1e3 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Mon, 4 Nov 2019 19:01:39 -0500
Subject: [PATCH] Spell the service name correctly in the dependency
 declarations

---
 nixos/modules/issuer.nix | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nixos/modules/issuer.nix b/nixos/modules/issuer.nix
index 42fb5b1d..fc0d2355 100644
--- a/nixos/modules/issuer.nix
+++ b/nixos/modules/issuer.nix
@@ -85,7 +85,7 @@ in {
 
       # Make sure we have a certificate the first time, if we are running over
       # TLS and require a certificate.
-      requires = lib.optional cfg.tls "cert-${cfg.domain}";
+      requires = lib.optional cfg.tls "cert-${cfg.domain}.service";
 
       after = [
         # Make sure there is a network so we can bind to all of the
@@ -94,7 +94,7 @@ in {
       ] ++
         # Make sure we run after the certificate is issued, if we are running
         # over TLS and require a certificate.
-        lib.optional cfg.tls "cert-${cfg.domain}";
+        lib.optional cfg.tls "cert-${cfg.domain}.service";
 
       # It really shouldn't ever exit on its own!  If it does, it's a bug
       # we'll have to fix.  Restart it and hope it doesn't happen too much
-- 
GitLab