If you live somewhere that modafinil isn't a controlled substance, it won't reverse stim tolerance, though it could be used to keep you somewhat productive while your tolerance to NDRI's/NDRA's slowly resets. It has some slight effects on dopamine iirc at higher dosages, I wouldn't think it would be substantial enough though to hinder your body from becoming re-sensitized to traditional psychostimulants. Don't go over therapeutic dosage ranges for it, and it could possibly allow you some relief from the malaise you're experiencing.
NMDA antagonists without significant effects on dopamine release allegedly can help with reversing stim tolerance, although when I tried this with 3-meo-pcp, it seemed to make no difference. Possibly one would have to have included small doses of NMDA antagonists before stimulant tolerance developed to reap any benefit against tolerance formation.