The legislative body may acquire any works or appliances already installed in the streets, of the municipality which are necessary or convenient to supply the municipality or its inhabitants with water, electricity, gas, or other means of heat, illumination, power, or any other public service, and any plants, lands, and rights of way, whether located within or without the municipality, which are necessary or convenient for their use and operation, or may acquire the use of any such works, appliances, and other property. The legislative body may also acquire electric current, gas, or other illuminating agent for power or lighting service pursuant to this division.