The nematode Caenorhabditis elegans is a widely used model organism for neuroscience. Although its nervous system has been fully reconstructed, the physiological bases of single-neuron functioning are still poorly explored. Recently, many efforts have been dedicated to measuring signals from C. elegans neurons, revealing a rich repertoire of dynamics, including bistable responses, graded responses, and action potentials. Still, biophysical models able to reproduce such a broad range of electrical responses lack. Realistic electrophysiological descriptions started to be developed only recently, merging gene expression data with electrophysiological recordings, but with a large variety of cells yet to be modeled. In this work, we contribute to filling this gap by providing biophysically accurate models of six classes of C. elegans neurons, the AIY, RIM, and AVA interneurons, and the VA, VB, and VD motor neurons. We test our models by comparing computational and experimental time series and simulate knockout neurons, to identify the biophysical mechanisms at the basis of inter and motor neuron functioning. Our models represent a step forward toward the modeling of C. elegans neuronal networks and virtual experiments on the nematode nervous system.