diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-03-31 19:13:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 19:13:51 +0200 |
commit | 9157ff4e746140960ff554ccd6fd4cf4284dba4a (patch) | |
tree | 483411f149d0d4c0ad0ad72d011df9f2da437c6f /nixos | |
parent | bfe1e177506a8b6539ced933fd75978812e0152a (diff) | |
parent | 1a5289f80367629e8bc784ef41d4c63c542316cf (diff) |
Merge pull request #83704 from Ma27/acme-container
nixos/acme: don't depend on multi-user.target inside a container
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/security/acme.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/acme.nix b/nixos/modules/security/acme.nix index b787a7675390..87217f1e3b90 100644 --- a/nixos/modules/security/acme.nix +++ b/nixos/modules/security/acme.nix @@ -318,7 +318,7 @@ in description = "Renew ACME Certificate for ${cert}"; after = [ "network.target" "network-online.target" ]; wants = [ "network-online.target" ]; - wantedBy = [ "multi-user.target" ]; + wantedBy = mkIf (!config.boot.isContainer) [ "multi-user.target" ]; serviceConfig = { Type = "oneshot"; # With RemainAfterExit the service is considered active even |