Tesla has pledged that the Gigafactory would be net zero: https://www.treehugger.com/renewable-energy/teslas-gigafacto...
If this is accurate and comes to pass, then assuming like the Swedes did that the batteries would have 50% fossil fuel sources for production wouldn't apply.