Effects of spatial variations in extended irreversible thermodynamics