Non-homogeneous persistent random walks and Lévy–Lorentz gas