Mix the flour, eggs, 1 teaspoon salt, a little nutmeg and 3-4 tablespoons of water to a thick dough and beat until it bubbles. Let it rest for a short time
Peel onions and cut them into rings. Fry in 1 tbsp. hot butter until golden brown. Grate cheese. Wash and finely chop the chives.
Bring plenty of salt water and oil to the boil. Spread the spaetzle dough in portions on a moistened board. Scrape fine strips into the water with a long knife. Bring to the boil briefly and let it simmer until the spaetzle rise to the surface. Lift them out, quench them and let them drain well. Keep warm
Layer the spaetzle and cheese alternately in a greased casserole dish. Spread the roasted onions on top of it Bake in a preheated oven (electric oven: 200 °C/circulating air: 175 °C/gas: level 3) for 5-10 minutes until the cheese has melted. Sprinkle with chives