diff options
author | Alexander Ried <ried@mytum.de> | 2016-09-06 17:39:46 +0200 |
---|---|---|
committer | Alexander Ried <ried@mytum.de> | 2016-09-06 17:47:00 +0200 |
commit | 7f98dca782b50e685ee49415a126a32b1e0cb4d8 (patch) | |
tree | 9ece6e4509585c25078f512383646041b9d94536 /nixos/modules | |
parent | 875c286ba39a93b36274bb8ccecdd33a5af83b00 (diff) | |
download | nixpkgs-7f98dca782b50e685ee49415a126a32b1e0cb4d8.tar nixpkgs-7f98dca782b50e685ee49415a126a32b1e0cb4d8.tar.gz nixpkgs-7f98dca782b50e685ee49415a126a32b1e0cb4d8.tar.bz2 nixpkgs-7f98dca782b50e685ee49415a126a32b1e0cb4d8.tar.lz nixpkgs-7f98dca782b50e685ee49415a126a32b1e0cb4d8.tar.xz nixpkgs-7f98dca782b50e685ee49415a126a32b1e0cb4d8.tar.zst nixpkgs-7f98dca782b50e685ee49415a126a32b1e0cb4d8.zip |
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.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/security/acme.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/security/acme.nix b/nixos/modules/security/acme.nix index 3dac558b953..45e8f64046b 100644 --- a/nixos/modules/security/acme.nix +++ b/nixos/modules/security/acme.nix @@ -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" ]; |