Read the standard
6.4 says:
"The organization shall determine and manage the work environment needed to achive conformity to product requirements."
Although most of the stuff mentioned so far might be valuable, the bottom line is you need to make sure your environment does not cause nonconforming product. An example would be a painting process performed outside. If wind-blown grass, dirt and empty chewing gum wrappers sticking to the paint will cause a reject, then you must prevent those things from sticking to the paint!
We must be careful not to read too much into the standard. Whether the painting process is environmentally friendly, or complies with health code is not an issue here. Do we have to concern ourselves with the environmental and safety stuff…you bet! But it is not addressed here. Show me the “shall” which says the organization has to comply with safety or environmental rules. You will not find it in Clause 6. Remember, that the auditable standard is 9001, not 9004. (I can feel you burning with anger)