what about physical exercise ?
what about social / emotional life ?
these are the two most impactful factors I've experienced so far. Good physical exhaustion made me sleep like a baby. And a stress free job (min wage) made me sleep better too.. the simplest call for an IT job made me wake up in the middle of the night and thinking.