Etymology
Today it means: An odd, eccentric or insane person. Full definition →
From nut + bag.
Etymology from Wiktionary, CC BY-SA 4.0.