The stardust is a given. As for sunlight, all the energy including somewhat arguably geothermal (using the suns gravity to help form the earth and I guess radioactive material being formed by other stars) comes from the sun and gets converted into chemical energy you eat so you’re stardust animated by sunlight (mainly).


How did the moon get there? Would it be there if there was no sun? It’s a shit argument I know but the moon and its mass is in some form due to the existence of the sun.
Tidal forces on earth are a combination of the moon and the sun’s gravity