Can I just add to what Simon said. When you go to reglue the nut don't go crazy with the amount of glue otherwise it'll be a lot harder to remove in the future if you ever need to. As long as it's a fairly snug fit in the nut slot you shouldn't need more than a couple of tiny drops.

In fact on my kit tele my nut isn't glued in at all because of how firm the fit is on the nut slot. My scratch thinline tele I'll need to use a tiny amount of glue because the slot isn't as tight.