What are your night shift hacks for getting enough sleep?

I’m about to go back to shift work after years in outpatients. I loved my old job but night shift messed me up as I never slept enough. How do you manage to sleep enough?