diff --git a/nixos/modules/services/web-apps/grocy.nix b/nixos/modules/services/web-apps/grocy.nix index d6095b50fa8a..8106cc06fd2b 100644 --- a/nixos/modules/services/web-apps/grocy.nix +++ b/nixos/modules/services/web-apps/grocy.nix @@ -216,6 +216,7 @@ in systemd.services.grocy-setup = { wantedBy = [ "multi-user.target" ]; before = [ "phpfpm-grocy.service" ]; + unitConfig.RequiresMountsFor = [ cfg.dataDir ]; script = '' rm -rf ${cfg.dataDir}/viewcache/* '';