Heat oil in a pan, add the nuts and fry till golden. Remove and keep aside.
Add all the ingredients for tempering: mustard seeds, dry red chillies, asafoetida powder, bengal gram dal, black gram dal and sufficient curry leaves.
When the frying smell comes, add green chillies and grated coconut. Stir fry till the coconut is golden brown.
Transfer the coconut mix to the rice. Add salt and mix till well combined.
Check for seasoning. Serve with yogurt or pachadi.