Collectively, GABA signaling promotes IL-17 expression during infection though mTORC1–EGR-2 signaling. Here, IL17A is linked to infection.