From 8153ad4458f0d71420f710705598c13da39a07f7 Mon Sep 17 00:00:00 2001 From: Marcel <34819524+MarcelCoding@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:15:19 +0100 Subject: [PATCH] nixos/librenms: order librenms-setup after network.target librenms-setup requires database access; when deploying databases externally, networking is required. --- nixos/modules/services/monitoring/librenms.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/librenms.nix b/nixos/modules/services/monitoring/librenms.nix index eb3504f8c9902..918c01ebaf22c 100644 --- a/nixos/modules/services/monitoring/librenms.nix +++ b/nixos/modules/services/monitoring/librenms.nix @@ -514,7 +514,7 @@ in systemd.services.librenms-setup = { description = "Preparation tasks for LibreNMS"; before = [ "phpfpm-librenms.service" ]; - after = [ "systemd-tmpfiles-setup.service" ] + after = [ "systemd-tmpfiles-setup.service" "network.target" ] ++ (lib.optional (cfg.database.host == "localhost") "mysql.service"); wantedBy = [ "multi-user.target" ]; restartTriggers = [ package configFile ];