diff --git a/nixos/common-services.nix b/nixos/common-services.nix index 9da2c27f..461fc24b 100644 --- a/nixos/common-services.nix +++ b/nixos/common-services.nix @@ -2,7 +2,10 @@ { systemd.services.promtail = { description = "Promtail service for Loki"; - after = [ "network.target" ]; + after = [ "zerotierone.service" "network.target" ]; + requires = [ "zerotierone.service" "network.target" ]; + wants = [ "zerotierone.service" "network.target" ]; + wantedBy = [ "multi-user.target" ]; serviceConfig = {