you've to add more egg yolks if you insist on using coffee in the custard mixture. otherwise, the thickening won't be proper. as a result, the custard won't set. the basic recipe for the custard contains egg yolks, heavy cream, vanilla extract, salt, and sugar.