You can point your finger at the CDU, but saying that the CDU was the big driving force is disingenous.
It seems that Germany's descisions on exiting nuclear power plants are always unhappily timed. First, Fukushima happens, making the extension a few months earlier look really weird. Then, the Ukraine war happens, rendering Germany's original plan moot to replace coal with natural gas from russia, and everyone is shaking their head again as Germany is keeping to the original plan.
That the current generation of voters who supported the shutdown of nuclear power production were substantially "encouraged" to adopt such views by said Greens' actions and politics when they were children and teenagers living in the 80s is incontrovertible fact. So, even if Merkel ended up as the one who executed the will of the people as head of the CDU, that will had nothing to do with CDU policy, and certainly not in the 80s and 90s. That was by definition the policy of the Greens, who also laid the groundwork for the irrational fear that Germans in their 40s and 50s have been cultivating for decades.
Why can i say this with complete certainty? Because I was one of those kids.