Disabling tests in nodejs

I have a configuration that pulls in firefox from nixpkgs/master . This depends on nodejs. During the build of nodejs_24-slim the tests fail. The failures look like, perhaps, some ZFS incompatabiity but I don’t really care: I would like to disable those tests. Instead of disabling those specific tests I went with disabling the check phase. However, no matter what permutation I try of overlays the check phase remains enabled. How do I disable the check phase?

Brief overview of my setup: GitHub - coreyoconnor/home-hive · GitHub

  • nixpkgs-unstable is the flake input of nixpkgs/master

This is provided to an option module that then instantiates the packages with overlays:

options = {
    nixpkgs-unstable = {
      overlays = mkOption {
        type = lib.types.listOf overlayType;
        default = overlays;
      };

      pkgs = mkOption {
        type = lib.types.pkgs;
        default = import nixpkgs-unstable {
          localSystem = pkgs.stdenv.buildPlatform.system;
          config = { };
          overlays = config.nixpkgs-unstable.overlays;
        };
      };
    };
  };

Which is then used to add firefox:

programs = {
      firefox = {
        enable = true;
        package = config.nixpkgs-unstable.pkgs.firefox;
      };
    };

I’ve tried various combinations of overrideDerivation and overrideAttrs to alter doCheck. If I alter src the builds fail, but otherwise my changes seem to have no effect on doCheck.

What I think the correct overlay should be :

self: super: {
  nodejs-slim_24 = super.nodejs-slim_24.overrideAttrs {
    doCheck = false;
  };
}

but that still results in the check phase running.

current overlay is me just trying various permutations to see if anything effects the check phase: home-hive/defaults/nixpkgs-unstable/overlays/nodejs.nix at 4c146c7e1fa5de0bed6f9a03c9121aa0856e89e3 · coreyoconnor/home-hive · GitHub

Any ideas on what I’m missing?