From 8e02b5f478f6fb15cabfe943c4173c454792cf8d Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Wed, 15 May 2024 17:28:01 +0100 Subject: [PATCH] nixos/loki: Start Loki after the network comes online Otherwise Loki fails to reach S3 stores after it comes up. --- nixos/modules/services/monitoring/loki.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/monitoring/loki.nix b/nixos/modules/services/monitoring/loki.nix index ba63f95e7f1a..5acb92e3d804 100644 --- a/nixos/modules/services/monitoring/loki.nix +++ b/nixos/modules/services/monitoring/loki.nix @@ -93,6 +93,8 @@ in { systemd.services.loki = { description = "Loki Service Daemon"; + wants = [ "network-online.target" ]; + after = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = let