Heat the oven to 350°F (180°C).
Cut the crusts from the bread and roll each slice flat with a rolling pin.
Press the bread into a large muffin tin to form cups. Bake for 5 minutes while the oven heats, just until the bread dries slightly without browning.
Melt the sauce butter in a saucepan over medium-high heat. Add the flour and stir until a smooth paste forms.
Whisk in half the milk until the sauce thickens, about 1 minute. Add the remaining milk, Dijon, half of the nutmeg, salt, and pepper. Whisk until thick enough to coat a spoon, about 1 1/2 to 2 minutes.
Remove the sauce from the heat and cool for 5 minutes, then stir in the Gruyere.
Brush the bread cups with melted butter. Add ham, crack an egg into each cup, spoon cheese sauce over the eggs, and sprinkle with extra Gruyere and remaining nutmeg.
Bake for 15 to 20 minutes, until the whites are set and the yolks reach your preferred doneness. Rest briefly, then garnish with parsley.