The official advice is no nuts before 5 years old. I however have accidentally given my dd pesto which had pine nuts in. She also tried a bit of chocolate spread with hazelnut in. The reason babies can't have nuts is in case they are allergic and go into anaphylactic shock. So it's up to you really to decide if your willing to take the risk. If not just make your recepie with out the nuts
Whole nuts, including peanuts, shouldn't be given to children under five as they can choke on them. As long as there's no history of food allergies or other allergies in your family you can giveÂ your baby peanuts once they're six months old as long as they're crushed or ground into peanut butter.
The advice on nuts changed again recently saying that they now positively advise parents to introduce them in small quantities (ground up etc), if possible before age 1, because of a major new study showing that it decreases the chances of allergies. It got a lot of media coverage a few months back - I remember hearing radio interviews about it.