Finely chop the garlic and onion and sauté them in the oil until they wither, in a nonstick pot. Add the tomatoes with the wine and cook for 30 minutes. Take the pot off heat and add the parsley and a little nutmeg into the sauce.
Cook the spaghetti in plenty of salted water, according to the package instruction and then drain them. Pour the sauce of tomato, the gruyere and feta cheese over the pasta and stir.
Place cyclically half of the pasta mixture in a nonstick round baking pan with relatively high inner walls. Spread over the pasta the boiled eggs and broccoli, sprinkle with pepper and pour on top the remaining pasta. Flatten the surface of the pasta and bake for 40 minutes at 180°C (356°F), until their surface turns golden brown. Leave the pasta for 15 minutes before serving, cut radially into triangular pieces.