Place the walnuts or pecans in a dry skillet over medium heat. Toast for 4–6 minutes, stirring often, until fragrant and lightly golden. Be careful not to burn them.
Add the oats and cooled nuts to a food processor.
Pulse a few times until you get a coarse, crumb-like texture. You want some small chunks for texture, not a fine flour.
Add the dates, finely grated carrot, shredded coconut, spices, salt, vanilla, and lemon juice.
Process until the mixture comes together. Blend until the mixture starts to clump and stick when pressed between your fingers. If it feels too dry, add 1 tablespoon of water and pulse again.
Scoop about 1 tablespoon of mixture and roll between your palms to form small balls.
Roll the truffles in shredded coconut if desired.
Refrigerate for at least 30 minutes to firm up before serving.
For storage, refrigerate up to 5 days, in an airtight container or freeze up to 3 months.