Preheat your oven to 350°F (175°C). Grease and flour a bundt pan or loaf pan to prevent the cake from sticking.
In a large mixing bowl, cream the butter and sugar together until light and fluffy. Add the eggs, one at a time, beating well after each addition. Stir in the vanilla extract.
In a separate bowl, whisk together the flour, baking powder, salt, and cocoa powder. Gradually add the dry ingredients to the butter mixture, alternating with the buttermilk. Begin and end with the dry ingredients, mixing just until combined.
Gently fold in the chopped pecans and shredded coconut. Pour the batter into the prepared pan, smoothing the top with a spatula.
Bake for 60-70 minutes, or until a toothpick inserted into the center comes out clean. Allow the cake to cool in the pan for 10 minutes before transferring it to a wire rack to cool completely.
While the cake is cooling, make the coconut-pecan glaze. In a medium saucepan, combine the evaporated milk, sugar, butter, and egg yolks. Cook over medium heat, stirring constantly, until the mixture thickens (about 5-7 minutes). Remove from heat and stir in the vanilla, coconut, and pecans. Allow the glaze to cool slightly before drizzling it over the cooled cake.
Slice and serve this rich, chocolatey cake with a generous drizzle of coconut-pecan glaze. Enjoy with a cup of coffee or a glass of milk.