From 6dc1b1ed0feebfd255feb6c61c0163cd53cd9100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 23 Oct 2025 02:25:40 +0200 Subject: [PATCH] nixos/librenms: update config cache otherwise any change to .env is never reflected. (cherry picked from commit 1119d225de6747ee87b3674ae4e67b1a8e8fabb0) --- nixos/modules/services/monitoring/librenms.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/monitoring/librenms.nix b/nixos/modules/services/monitoring/librenms.nix index 43e5299cbdd6..4c0ed808a66d 100644 --- a/nixos/modules/services/monitoring/librenms.nix +++ b/nixos/modules/services/monitoring/librenms.nix @@ -668,6 +668,9 @@ in ${artisanWrapper}/bin/librenms-artisan optimize echo "${package}" > ${cfg.dataDir}/package fi + + # to make sure to not read an outdated .env file + ${artisanWrapper}/bin/librenms-artisan config:cache ''; };