Sorry to hear about your tough situation ��I sympathize.
If you're able to homeschool, that may be the most promising option. There are a lot of good educational resources out there if you know where to look for them. Sometimes people recommend against homeschooling on the grounds that it offers fewer opportunities to socialize. This is true, but (a) if your daughter is well above grade level, her opportunities to socialize within her class may not be so good (b) homeschool can be supplemented with extracurricular activities involving other children.
I've heard that there's a strong base of evidence that acceleration (skipping a grade or two) is beneficial, both academically and socially. If your district/school allows it, you can consider it as an option.
If neither of these things is possible, your daughter's teacher might be open to assigning your daughter work of your choice during parts of the school day. As I said, there are some really good resources to draw material from.
To the extent that your daughter doesn't have options other than the standard curriculum, I would try to frame it to her that she view school as a place to learn to follow rules. It's very suboptimal for school to serve that function alone. But I think that gifted children genuinely have something to gain from getting used to following rules. A common problem for gifted children to have when they grow up is not being able to do what their bosses tell them to do in the work place, because they've become so used to viewing institutional rules as pointless.
If you'd like to say more about your situation, I'd be happy to offer further thoughts.