lets say that your flash to subject distance is 10' and that calls for a aperture of f16
but you want f32 to expose the background with..

Pop the subject with flash, have model hold pose, move the aperture ring to f32 and let it go for 8-10 min. I also suggest using a wide angle lens for greater depth of field

This method is considering you want both subject and background to be in sharp focus