01 - Preheat the oven to 375°F. Rub a large baking dish with the cut sides of the garlic clove, then butter it with 1 tablespoon butter.
02 - Arrange half the sliced potatoes in the dish, overlapping slightly. Top with half the onions and season with salt, pepper, and nutmeg.
03 - Sprinkle half the grated Gruyère over the seasoned potatoes.
04 - Repeat layers with remaining potatoes, onions, seasoning, and cheese, ensuring the top layer is covered with cheese.
05 - In a saucepan, gently heat cream and milk until just steaming but not boiling. Pour evenly over the layered potatoes.
06 - Dot the top with remaining 1 tablespoon butter. Cover with foil and bake for 40 minutes. Remove foil and bake uncovered for 20 minutes until potatoes are tender and top is golden and bubbling.
07 - Allow the dish to rest for 10 minutes before serving. Garnish with chopped chives or parsley if desired.