The metaphor is:
D) "I nodded, once, ten times, endlessly. As if my head had decided to say yes for all eternity."
This is a metaphor because it is comparing the act of nodding to the idea of saying yes for all eternity, which is not literally possible.