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.
This commit is contained in:
Alexander Ried 2016-09-06 17:39:46 +02:00
parent 875c286ba3
commit 7f98dca782

View File

@ -166,7 +166,8 @@ in
++ concatLists (mapAttrsToList (name: root: [ "-d" (if root == null then name else "${name}:${root}")]) data.extraDomains);
acmeService = {
description = "Renew ACME Certificate for ${cert}";
after = [ "network.target" ];
after = [ "network.target" "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
Type = "oneshot";
SuccessExitStatus = [ "0" "1" ];