nixos/security/acme: order after nss-lookup.target

This should hopefully solve races with DNS servers (such as unbound)
during the activation of a new generation. Previously unbound could
still be unavailable and thus the acme script would fail.
This commit is contained in:
Andreas Rammhold 2020-10-06 22:52:55 +02:00
parent e7ebd6be80
commit 2c0ee52d91
No known key found for this signature in database
GPG Key ID: E432E410B5E48C86

View File

@ -207,7 +207,7 @@ let
renewService = {
description = "Renew ACME certificate for ${cert}";
after = [ "network.target" "network-online.target" "acme-fixperms.service" ] ++ selfsignedDeps;
after = [ "network.target" "network-online.target" "acme-fixperms.service" "nss-lookup.target" ] ++ selfsignedDeps;
wants = [ "network-online.target" "acme-fixperms.service" ] ++ selfsignedDeps;
# https://github.com/NixOS/nixpkgs/pull/81371#issuecomment-605526099