What’s the point in quitting in that case? Wouldn’t it be more effective to say “I’m working from home whether you like it or not, you can do what you want” and then let them fire you if they want to? You are merely exercising your right to refuse to work in a hazardous environment.