diff --git a/nixos/modules/issuer.nix b/nixos/modules/issuer.nix index 42fb5b1d68f08784d7583fdc92a450c4b3207f60..fc0d2355f204c3192133e3d63c210aefce7a467b 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