Wiktionary
squint like a bag of nails
vb. (context idiomatic 1811 English) To squint very much, as though one's eyes were directed as many ways as the points of a bag of nails.