Nematic superconductivity in a one-dimensional system of massless fermions