Photovoltaics don't use rare earth minerals (and Li-ion batteries only use yttrium in one particular variety of LFP cells.)