FORT STOCKTON, Texas—A new energy boom is taking shape in the oil fields of west Texas, but it’s not what you think. It’s solar.

Solar power has gotten so cheap to produce—and so competitively priced in the electricity market—that it is taking hold even in a state that, unlike California, doesn’t offer incentives to utilities to buy or build sun-powered generation.

Pecos...