This happened to me as well when i first installed my head unit.
Check the earth on the head unit, it is very possible to connect the earth to another circuit (such as the parkers and dashlights), test the earth with and without the lights on.
Check all the fuses, I'm well aware this has been said before, but pull out every fuse and check each one for a broken wire and or burnt terminals.
Other than that, the dimmer switch turned down to zero does not influence all the lights on the dashboard (at least in my car) the blinkers lights and cruise control, fuel etc still all work.
Check that the parkers circuit isn't accidentally pushed up onto the metal cradle which holds the head unit in. If all of this doesn't work, find a local member to come and have a look at it,
And for god's sake don't get pulled over by the cops with the dashlights not working, if its a TMU cop then they might canary you for it, but its a minor defect least.