I'm in a very similar position so if it helps, at least you're not alone.
Last year my husband went for a complete career change and now works in a job that's a 60 mile commute from where we live. We only ever lived in our current city for his job (he worked in oil and gas so we were very much tied to one location) and currently live 90 miles away from my family - I moved to be with him, and we have no-one here. When he took the new job, we put our house up for sale but so far have had no luck selling - the housing market is slow where we are due to the fall in oil price in recent years.
Now that I'm pregnant, we are more desperate than ever for our house to sell so that we can move closer to my family, get a cheaper mortgage (our current city is very expensive), and avoid my husband having a big commute and not getting home until 7.30 at night. As soon as I go off on maternity leave, we will also be living in a city where neither of us are actually working - so my husband will be doing a 2 hour commute each way (and spending a fortune doing so) for essentially no reason.
However, I am also relying on the enhanced maternity pay and can't afford to go without it - so although we are hoping hoping hoping that our house will sell and we will get moved at some point within the next year, I would also have to go back after maternity leave to a job that will be 90 miles away from where we live - I'm tied to going back for a minimum of 3 months, which is manageable, but would be tough! I'm obviously worried about how I would manage this with a young child, but I think overall it would be worth putting up with it if it means longer term we are moved and settled where we want to be, and have family near by - so I'm trying to focus on the benefits of that! I'm also hoping that I might be able to go back to work part-time, and my work are flexible with allowing me to work from home (although I know you don't have this option with teaching!) so I'm hoping between all of those things I could cut down on the number of days I will actually have to commute.
We've also started toying with other options like renting, moving in with parents whilst we wait for our house to sell etc. but it's all a lot of hassle and happening at the worst time - when you know you've got a baby coming it's the one time when you really want to be settled in your own home!
Sorry for the big essay - basically just wanted to say that I know the feeling, I know how complicated it can all be trying to get everything to come together with work, house, mat leave etc. all at once, and I sympathise! Hope it all works out for you.