Wash the herbs, shake dry and pluck the leaves. Put some basil leaves aside for garnishing. Roast the walnuts in a pan without fat. Peel and roughly chop the garlic. Grate 30 g cheese. Mix herbs, nuts, cheese and olive oil to a thin pesto. Season to taste with salt and pepper
Prepare the pasta in boiling salted water according to the instructions on the packet. Add peas about 3 minutes before the end of cooking time. Heat the oil in a frying pan. Fry Parma ham in it in portions for 3-4 minutes while turning until crisp. Remove and drain on kitchen paper. Slice the rest of the Parmesan cheese into shavings
Drain the pasta, collecting approx. 200 ml of pasta water. Put the pasta and pesto back into the pot. Crumble the ham and mix well. If the pasta is too dry, stir in some pasta water. Garnish the pasta with basil and parmesan shavings and serve immediately