Diffusive hydrodynamics of inhomogenous Hamiltonians