Yea this doesn't really work when the resource is also necessary to live and in parallel has massive externalities not being properly accounted for.
This is some praise the market reductive lunacy. Obviously energy production, pricing and consumption needs to be heavily regulated in any sensible society.