about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorMinerSebas <scherthan_sebastian@web.de>2024-03-16 17:46:03 +0100
committerMinerSebas <scherthan_sebastian@web.de>2024-03-16 18:02:17 +0100
commit2210ac77645b0e72e5f4e916fcf86a45dac23d62 (patch)
treef47c59e9c075aebe4ab927e74d269eb46d8d2c5a /nixos/modules
parent7d6917088cd27899e6d9c929b8f0746e950cddde (diff)
downloadnixlib-2210ac77645b0e72e5f4e916fcf86a45dac23d62.tar
nixlib-2210ac77645b0e72e5f4e916fcf86a45dac23d62.tar.gz
nixlib-2210ac77645b0e72e5f4e916fcf86a45dac23d62.tar.bz2
nixlib-2210ac77645b0e72e5f4e916fcf86a45dac23d62.tar.lz
nixlib-2210ac77645b0e72e5f4e916fcf86a45dac23d62.tar.xz
nixlib-2210ac77645b0e72e5f4e916fcf86a45dac23d62.tar.zst
nixlib-2210ac77645b0e72e5f4e916fcf86a45dac23d62.zip
nixos/scrutiny: Order scrutiny.service after influxdb2.service
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/monitoring/scrutiny.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/scrutiny.nix b/nixos/modules/services/monitoring/scrutiny.nix
index 35b663fb443d..fbe8ab25299e 100644
--- a/nixos/modules/services/monitoring/scrutiny.nix
+++ b/nixos/modules/services/monitoring/scrutiny.nix
@@ -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";