Let's consider a timeline of Chixulub
Here is my source
On impact, the research found, the Chicxulub asteroid — which was more than 6 miles wide — sparked wildfires that stretched for hundreds of miles, triggered a mile-high tsunami, and released billions of tons of sulfur into the atmosphere. That gaseous haze blocked the sun, cooling the Earth and dooming the dinosaurs.
The authors estimated that the asteroid's power was equivalent to 10 billion of the atomic bombs used in World War II.
"Effectively within 1,500 kilometers you would have seen very little before being incinerated," he said.
Dinosaurs weren't the only creatures that went extinct after Chicxulub hit. Flying pterosaurs and marine predators like mosasaurs and plesiosaurs also disappeared, along with 75% of life on the planet.
According to Gulick's team, the impact vaporized sulfur-rich rocks, releasing a haze of gaseous sulfur into the air that blotted out the sun and cooled the planet.
"The Earth would likely no longer look like the familiar blue marble from space," he added, "and it would take perhaps as long as two decades to clear again fully."
Conclusion
Your solar-dependent civilization is screwed. If they are in the right place (a story-dependent condition), then they would survive the damage due to the initial impact. However, the global cloud lasting up to 20 years that blocked out so much of the sun that 75% of life on the planet (that's A LOT OF LIFE) died would mean your people are completely screwed.
The problem is that nothing is perfect (without violating the laws of thermodynamics). Which means that anything that blocks the sun such that 75% of all life dies will easily (even trivially) stop all pre-existing panels (and, IMO, all solar panels) from operating. Yup, they're screwed.
Unless they do the logical thing and use nuclear energy instead.
Engineering note: Solar and wind power may be politically popular, but political popularity doesn't solve problems in useful ways. Solar and wind are only pieces in a much bigger puzzle. Combined with hydroelectric, geothermal, nuclear — and, as backups when everything goes south (like when a Chicxulub-sized impact occurs), coal, natural gas, and chemical energies — they provide consistent power with the least amount of environmental damage even when the worst of emergencies occur.
If you want proof of this, consider all the failures that brought Texas to its knees during the winter of 2020-21, which included the failure of solar and wind (among a great many other failures). In fact, Texas is a great example of what happens when politics get in the way of sound engineering decisions, which must of necessity include redundancies and backups.