From 9d384c350b29e8d59a55d35582ff06309721e9a0 Mon Sep 17 00:00:00 2001 From: MinerSebas Date: Mon, 18 Mar 2024 16:30:51 +0100 Subject: [PATCH] nixos/scrutiny: Order scrutiny-collector after scrutiny --- nixos/modules/services/monitoring/scrutiny.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/monitoring/scrutiny.nix b/nixos/modules/services/monitoring/scrutiny.nix index fbe8ab25299e..031f5a30cada 100644 --- a/nixos/modules/services/monitoring/scrutiny.nix +++ b/nixos/modules/services/monitoring/scrutiny.nix @@ -195,6 +195,8 @@ in systemd = { services.scrutiny-collector = { description = "Scrutiny Collector Service"; + after = lib.optional cfg.enable "scrutiny.service"; + wants = lib.optional cfg.enable "scrutiny.service"; environment = { COLLECTOR_VERSION = "1"; COLLECTOR_API_ENDPOINT = cfg.collector.settings.api.endpoint;