In general, I would advise against one night stays. Driving in Ireland takes longer than you think, and longer than Google Maps indicates. I don't think one night in Dingle or Dublin is enough. Unless you have your heart set on certain places, I would do the following (assuming you are flying in and out of Dublin):
drop Trim, head straight to Portrush, spend two nights nights there.
I assume you are staying the night in Derry/Sligo to break up the long drive to Galway. I wouldn't do Derry. Consider either Donegal or Sligo, or heading right to Galway.
For me personally, 2 nights was enough in Galway. If I had an extra one, I'd have gone to the Aran Islands for a day.
On your way to Dingle, make sure you stop and see the Cliffs of Moher.
Do at least two nights in Dingle - in my opinion and many others would agree, it was our favorite part of Ireland. Maybe even three.
2 nights in Killarney.
Head to Kilkenny instead, stopping at the Rock of Cashel. Spend one (violating my own rule) or ideally two nights there.
Drive through Wicklow on your way to Dublin. Spend 2-3 nights in Dublin.