Wife's leaving me

15 years, 2 kids. I moved cross-country with her to be near her family and now I'm stuck here for at least another 10 while my kids grow up.

It's my fault. I couldn't be someone she wanted to be around in spite of that being my driving desire for the past 6 months. I couldn't detach myself from the problem and be independent the way I was when I wasn't as isolated.

I don't know what to do.