nixos/homepage-dashboard: restore strict shell checks (#392373)

This commit is contained in:
Jon Seager
2025-03-23 13:36:30 +00:00
committed by GitHub
@@ -227,12 +227,14 @@ in
Restart = "on-failure";
};
enableStrictShellChecks = true;
# Related:
# * https://github.com/NixOS/nixpkgs/issues/346016 ("homepage-dashboard: cache dir is not cleared upon version upgrade")
# * https://github.com/gethomepage/homepage/discussions/4560 ("homepage NixOS package does not clear cache on upgrade leaving broken state")
# * https://github.com/vercel/next.js/discussions/58864 ("Feature Request: Allow configuration of cache dir")
preStart = ''
rm -rf "$NIXPKGS_HOMEPAGE_CACHE_DIR"/*
rm -rf "''${NIXPKGS_HOMEPAGE_CACHE_DIR:?}"/*
'';
};