multifarm | wooden pipe with autarchic gate set to soil < 96 | chest works too, no need for the additional gate.
Though of course you can feed both fertilizer and soil through one hatch with different pipe wire colors but I usually go the lazy way with one hatch per input item :p.