same here with 24.05 and nixos/nixpkgs/8f7492cce28977fbf8bd12c72af08b1f6c7c3e49' (2024-09-14).
the temporary fix proposed in #341867 (comment):
replacing:
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
with:
boot.kernelPackages = pkgs.linuxPackages_6_10;
seems to work!