diff --git a/nixos/modules/services/web-apps/firefly-iii.nix b/nixos/modules/services/web-apps/firefly-iii.nix index bc1fcdfc9c0fe..30c4ea91a197c 100644 --- a/nixos/modules/services/web-apps/firefly-iii.nix +++ b/nixos/modules/services/web-apps/firefly-iii.nix @@ -31,6 +31,7 @@ let ${lib.optionalString ( cfg.settings.DB_CONNECTION == "sqlite" ) "touch ${cfg.dataDir}/storage/database/database.sqlite"} + ${artisan} optimize:clear rm ${cfg.dataDir}/cache/*.php ${artisan} package:discover ${artisan} firefly-iii:upgrade-database @@ -318,6 +319,7 @@ in } // commonServiceConfig; unitConfig.JoinsNamespaceOf = "phpfpm-firefly-iii.service"; restartTriggers = [ cfg.package ]; + partOf = [ "phpfpm-firefly-iii.service" ]; }; systemd.services.firefly-iii-cron = {