nixos/scrutiny: Order scrutiny-collector after scrutiny

This commit is contained in:
MinerSebas 2024-03-18 16:30:51 +01:00
parent 79bb415514
commit 9d384c350b

View file

@ -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;