First peel the potatoes and carrots and cut them into thin slices.
Then peel and dice the onion. Dice the mushrooms as well. Cut the ham into strips. Fry the onions, mushrooms and boiled ham with a little butter. Add the milk and cream to the fried vegetables and season with salt, pepper and nutmeg as desired.
Put all ingredients in a flat baking dish and stir well. Spread the cheese over it.
Place the baking dish in the preheated oven. Bake at 180 ° C for 60 minutes. Make sure that the cheese does not get dark, cover with aluminum foil if necessary.
This recipe was created by using up leftovers, so the ingredients can certainly be varied well.