Rinse the basmati rice in a fine-mesh sieve under cold water until the water runs clear. For the fluffiest results, soak the rice in water for 20-30 minutes, then drain completely.
Heat the ghee or oil in a heavy-bottomed saucepan over medium-low heat.
Add the cashews, almonds, or peanuts and fry, stirring constantly, until golden brown.
Remove with a slotted spoon and set aside for later.
Increase the heat to medium.
Add the cumin seeds, minced green chilies, and ginger to the hot oil in the pan.
Sauté for about 30 seconds until the cumin seeds are fragrant and begin to sizzle.
Add the drained rice to the pan and stir-fry for 2 minutes until the grains are lightly toasted and coated in the spiced oil.
Pour in the water and add the turmeric, garam masala, raisins, salt, fresh herbs, and fresh peas (if using).
Stir once to combine, then increase the heat to high and bring to a rolling boil.
Immediately reduce the heat to the lowest possible setting, cover the pan with a tight-fitting lid, and let it simmer for 15 minutes. If using frozen peas, quickly lift the lid, sprinkle them over the top, and replace the lid.
Continue to cook for another 5-10 minutes, or until all the water is absorbed.
Turn off the heat and let the pilaf stand, covered and undisturbed, for 5-10 minutes. This step is crucial for allowing the grains to firm up.
Uncover the pot, add the toasted nuts you set aside earlier, and gently fluff the rice with a fork to separate the grains.
Serve hot.
Finish with a squeeze of fresh lemon or lime juice and a sprinkle of fresh cilantro to brighten up all the flavors just before serving.