You may laugh, but running an optimized diesel generator to charge battery-powered heavy vehicles can be much more energy efficient than running the vehicles directly on diesel engines. Check out Edison Motors, who are in the process of developing a mass-market diesel-electric hybrid truck: https://www.youtube.com/@EdisonMotors