>>4422468Those are inherently hard to do, since depth of field increase eventually limits your image quality due to diffraction. You can keep stopping down to your minimum aperture but don't be surprised when you start seeing the images become blurry. You can compensate with stacking focus in post processing if you want.
I recently made a 4x5 pinhole for this exact reason since their depth of field is essentially infinite, but image quality suffers there due to the resolution limit of pinholes.