That is such a hard situation. It won't be easy to have any boundaries since you aren't in control of the home. The option you will have is to give your mom the care she needs and leave the house to keep your distance. Will you have a room of your own?
I'm really sorry that your mom is dying. That's enough to deal with on its own. Does she have hospice care?