From acb845dd1137228eee76f9486796aebda832c3b5 Mon Sep 17 00:00:00 2001 From: ThinkChaos Date: Mon, 9 Nov 2020 22:17:39 +0100 Subject: [PATCH] nixos/k3s: Add dependency on firewall.service --- nixos/modules/services/cluster/k3s/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/cluster/k3s/default.nix b/nixos/modules/services/cluster/k3s/default.nix index fe9f43f64262..23cd01690314 100644 --- a/nixos/modules/services/cluster/k3s/default.nix +++ b/nixos/modules/services/cluster/k3s/default.nix @@ -78,8 +78,8 @@ in systemd.services.k3s = { description = "k3s service"; - after = if cfg.docker then "docker.service" else "network-online.service"; - wants = "network-online.service"; + after = [ "network-online.service" "firewall.service" ] ++ (if cfg.docker then [ "docker.service" ] else []); + wants = [ "network-online.service" "firewall.service" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { # See: https://github.com/rancher/k3s/blob/dddbd16305284ae4bd14c0aade892412310d7edc/install.sh#L197