Like fossil fuels come from organic matter that grew because of the sun. Is there any form of energy on that cannot be traced back to the sun in some way?
I wouldn't count either then. Hydro is ultimately powered by precipitation, which is caused by the sun evaporating water. Geothermal is ultimately caused by the gravity of the sun affecting the earth.
I agree with hydro, but you're wrong about geothermal. Tidal forces caused by the Sun are minuscule compared to that of the Moon. Also, Earth still has a decent amount of latent heat caused by its formation.