Any permanent habitation should include a smelter to alleviate some of the cost of shipping metals from Earth. From it oxygen or CO2 will be "waste" byproducts, liquefacting and storing them should not be a problem. I can imagine that having large reserve of oxygen will be desired safety feature.
Hydrocarbons will likely be in short supply on the moon but if there is, say, a zinc mined, it could be "burned" in zinc-air cells.
Hydrocarbons will likely be in short supply on the moon but if there is, say, a zinc mined, it could be "burned" in zinc-air cells.