Preheat your oven to 350°F (175°C). Grease and flour a bundt pan or 9x13-inch baking dish.
In a large bowl, mix the white cake mix and pistachio pudding mix.
Add eggs, water, and vegetable oil to the dry ingredients. Mix until well combined, about 2–3 minutes with an electric mixer.
Stir in shredded coconut and chopped pistachios. If using almond extract, add it in as well.
Pour the batter into the prepared pan and smooth the top.
Bake for 40–45 minutes, or until a toothpick inserted into the center comes out clean.
Let the cake cool in the pan for 10 minutes, then transfer it to a wire rack to cool completely.
While the cake is cooling, prepare the glaze by mixing powdered sugar, coconut milk, and vanilla extract until smooth.
Once the cake is cool, drizzle the glaze over the top.
Sprinkle with toasted coconut flakes and chopped pistachios for a stunning finish.