Configurational model for a one-dimensional ionic conductor