Vacuum leak almost 100%, that's how they do.
Smoke the manifold, repair any leaks found.
The dimming lights is just a product of the erratic idle, mot likely. Fix the idle, FIRST, then diagnose the lights if they dim. That could most likely be a weak battery, because the lights should still be bright even if the alt wasn't charging at all.
But yes, go diagnose and fix the vac leak, then tell us how the charging situation is.
__________________
|