security.acme: the client really needs networking
Actually this can be improved since the client only needs network
connectivity if it needs to renew the certificate.
commit7f98dca782b50e685ee49415a126a32b1e0cb4d8
authorAlexander Ried <ried@mytum.de>
dateTue 6 Sep 2016, 17:39 (10 years ago)
parent875c286
nixos/modules/security/acme.nix+2−1
@@ -166,7 +166,8 @@ in
166166 ++ concatLists (mapAttrsToList (name: root: [ "-d" (if root == null then name else "${name}:${root}")]) data.extraDomains);
167167 acmeService = {
168168 description = "Renew ACME Certificate for ${cert}";
169− after = [ "network.target" ];
169+ after = [ "network.target" "network-online.target" ];
170+ wants = [ "network-online.target" ];
170171 serviceConfig = {
171172 Type = "oneshot";
172173 SuccessExitStatus = [ "0" "1" ];