The photons hit a receptor in the retina (not the nerve directly). They are absorbed and their energy causes a chemical reaction. A long chain of subsequent reactions eventually reach the brain.
The photoreceptor is slowly (hence a long time taken for dark-adaption) returned to its initial chemical state, with the photon’s energy ultimately converted into heat.
An explanation in terms of QED would not be illuminating!