I managed to hacked myself to build a habit of 30 minutes a day of spaced repetition, building off my momentum to consistently do khanacademy an hour a day(A project which I finished a while ago) in conjunction with my time tracking tool. The key seems to be a bunch of small repeatable goal that allow for small wins. It works for me, though I don't know if it will work for anyone else. Plus, it's only anecdotal, so take it with a grain of salt.
(I wish there is a accessible book that rigorously about which habit building strategies work according to scientific research)