Onion peel, halve and finely dice. Peel garlic and chop finely. Clean the broccoli and divide into small florets. Cook broccoli in plenty of boiling salted water for about 6 minutes. Drain and rinse briefly with cold water and drain well.
Cook the pasta in boiling salted water according to the instructions on the packet. Drain and rinse briefly with cold water. Heat the oil in a saucepan. Fry the onions and garlic for about 2 minutes.
Deglaze with cream and broth, bring to the boil and simmer for 3-4 minutes at low heat. Stir in the pesto and remove from the heat.
Grate cheese. Mix pasta and broccoli, season with salt, pepper and nutmeg. Put the noodles into small casseroles. Pour pesto sauce over them and press a small depression in the middle of each form. Beat in 1 egg each and sprinkle with cheese.
Bake casseroles in a preheated oven (electric cooker: 200 °C/ convection oven: 175 °C/ gas: see manufacturer) for 14-16 minutes. Take out and serve.