I have read from multiple sources that doing a postdoc in the same university as a PhD is not ideal. It is heavily encouraged to go elsewhere once graduating. Furthermore, often one applies to many postdoc positions, and its the luck of the draw where one ends up. However, I am curious how future hiring committees factor things like the two-body (and soon to be three-body) problem.
For context, my wife's career is taking off and we are hoping to start a family (we are in our early thirties). Both these considerations make it highly ideal to stay in the same city. That being said, the only professor in the area and is in my field is my current PhD advisor. A plus is my projects collaborate with non-overlapping sets of collaborators and my work is fairly diverse.
While my PI does encourage me to apply to other positions, it is possible to do a postdoc with him. I am curious the ramifications of such a choice. If I tell a hiring committee that I chose to stay because of family considerations, is that a deal breaker? Furthermore, I may just be kicking the can down the road, as at the end of the postdoc I am still left with the same problem, although stability in the early years of starting a family might be more warranted.
There are less ideal options that may or may not be available, depending on funding:
One of my current collaborators has a lab that is a 1.5 hr commute away. I am aware that he has an opening soon that I could potentially take advantage of. Plus, I also mostly do simulations, so maybe he would be okay with working from home a few days a week (I have yet to ask him, as I have no idea if that is something that's even polite to ask).
Do a postdoc with a different professor within the same university. This is hard as there isn't a good fit, but there are a few that are similar enough that could work, assuming they have availability and funding of course.
Bite the bullet and move to another city.
Any advice on what an acceptable course of action given these circumstances would be greatly appreciated.
P.S.: I am in East Asia if it matters.