nixos/k3s: Change dependency to network.service

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
ThinkChaos 2021-04-13 13:37:41 +02:00 committed by GitHub
parent 4db9d279c4
commit 0b7c8b92f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -78,8 +78,8 @@ in
systemd.services.k3s = {
description = "k3s service";
after = [ "network-online.service" "firewall.service" ] ++ (optional cfg.docker "docker.service");
wants = [ "network-online.service" "firewall.service" ];
after = [ "network.service" "firewall.service" ] ++ (optional cfg.docker "docker.service");
wants = [ "network.service" "firewall.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
# See: https://github.com/rancher/k3s/blob/dddbd16305284ae4bd14c0aade892412310d7edc/install.sh#L197