From 1119d225de6747ee87b3674ae4e67b1a8e8fabb0 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. --- 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 ef3593cf038c..3d8d3dbd8296 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 ''; };