Preheat oven to 350 degrees F.
Whisk together dry ingredients (through spices) in a medium mixing bowl.
Add shredded carrots and remaining wet ingredients to dry ingredients and mix until no dry clumps remain.
Fold in shredded coconut and chopped walnuts if desired (optional).
Coat 6 wells of a regular-sized muffin tin with cooking spray (or use liners), then divide batter between wells.
Bake for 20-30 minutes until a toothpick or knife inserted comes out clean. Let cool before removing from muffin tin.
Leftovers will keep in the fridge in an airtight container at least a week, or in the freezer at least a month.
