From bd57044a6004aeaef4c4a30b4f09ecba6e2c2412 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Tue, 7 Jan 2025 20:27:57 +0000 Subject: [PATCH] nixos/kimai: ensure that our local.yaml is valid on init time This is normally done by kimai:reload command (which also include cache clearing and warming up). But because we skip that command, run config linting ourselves. --- nixos/modules/services/web-apps/kimai.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/web-apps/kimai.nix b/nixos/modules/services/web-apps/kimai.nix index 91735b282fcc..1f3041206209 100644 --- a/nixos/modules/services/web-apps/kimai.nix +++ b/nixos/modules/services/web-apps/kimai.nix @@ -320,6 +320,10 @@ in umask $oldUmask + # Ensure that our local.yaml is valid (see kimai:reload command). + ${pkg hostName cfg}/bin/console lint:yaml --parse-tags \ + ${pkg hostName cfg}/share/php/kimai/config + # Run kimai:install to ensure database is created or updated. # Note that kimai:update is an alias to kimai:install. ${pkg hostName cfg}/bin/console kimai:install