Sauté the onion and garlic in a little oil until softened and fragrant.
Add the ground meat and season with salt, pepper, and your preferred spices. Cook until the meat is fully browned.
Stir in the parsley or chives, diced tomatoes, and any optional vegetables. Cook for a few minutes, then add the tomato sauce. Stir well and let the mixture simmer until slightly thickened.
Place a layer of pre-cooked eggplant slices in a baking dish.
Top the eggplant with a layer of the meat mixture, shredded Gruyère, and tomato slices.
Repeat the layers until all the ingredients are used, finishing with cheese near the top.
Bake until the dish is hot throughout and the cheese is melted and golden. Let it rest briefly before serving.