Not sure if it’s exactly what you’re after, but Unifi gateways can install NextDNS with a script provided by NextDNS. It’s all the same lists as Pi-Hole, and possibly more intelligent ones, too. Bonus points are it makes every device in your home use encrypted DNS, as well!
I’m using it on a Dream Machine Pro, and the new Cloud Gateway Ultra.
Trash guides is what I used to get set up, very good guides + recyclarr!