How to do sphere voxelation

I want to create a shell detector

Like this topic

Using nestedparameterization and replica dose not work correctly

Is there a way to do this?

Thanks,