Rather than starting with modafinil, melatonin should probably be the first step. It might help, and people do not report tolerance after prolonged use the way they do for modafinil.
Melatonin is fine if it works for you, and you find the right schedule to take it on, and you don't get terrible nightmares from it. Somehow I usually meet 2 of those criteria at a time.