nixos/scrutiny: Order scrutiny.service after influxdb2.service

This commit is contained in:
MinerSebas 2024-03-16 17:46:03 +01:00
parent 7d6917088c
commit 2210ac7764

View File

@ -167,7 +167,8 @@ in
systemd.services.scrutiny = {
description = "Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
after = [ "network.target" ] ++ lib.optional cfg.influxdb.enable "influxdb2.service";
wants = lib.optional cfg.influxdb.enable "influxdb2.service";
environment = {
SCRUTINY_VERSION = "1";
SCRUTINY_WEB_DATABASE_LOCATION = "/var/lib/scrutiny/scrutiny.db";