Unverified Commit dadc13b8 authored by Jon Seager's avatar Jon Seager Committed by GitHub
Browse files

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

parents 993e8a07 7f27abf4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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:?}"/*
      '';
    };