git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit2c0ee52d91598cc32eb75d1263d00f065c502847 authorAndreas Rammhold <andreas@rammhold.de> dateTue 6 Oct 2020, 22:52 (6 years ago) parente7ebd6b
1 file changed+1−1
nixos/modules/security/acme.nix+1−1
nixos/modules/security/acme.nix+1−1
@@ -207,7 +207,7 @@ let
207207
208208 renewService = {
209209 description = "Renew ACME certificate for ${cert}";
210− after = [ "network.target" "network-online.target" "acme-fixperms.service" ] ++ selfsignedDeps;
210+ after = [ "network.target" "network-online.target" "acme-fixperms.service" "nss-lookup.target" ] ++ selfsignedDeps;
211211 wants = [ "network-online.target" "acme-fixperms.service" ] ++ selfsignedDeps;
212212
213213 # https://github.com/NixOS/nixpkgs/pull/81371#issuecomment-605526099