Psychologically, dream images can highlight a state of mind, and seeing nuts and bolts is often a way of alerting us to basic ideas or how things work, so that we understand better.

The idea of a bolt from the blue suggests sudden comprehension.