Preheat the oven to 350°F. Butter a 9×13-inch baking dish.
Slice the potatoes about ⅛-inch thick using a mandoline, food processor, or sharp knife.
In a saucepan, combine the heavy cream, garlic, rosemary, bay leaf, butter, salt, pepper, and nutmeg. Warm over low to medium-low heat and gently simmer for about 10 minutes. Do not boil.
Arrange a layer of potatoes in the prepared baking dish and sprinkle with some of the cheddar and Gruyère. Continue layering the potatoes and cheese, reserving some cheese for the top.
Remove the rosemary sprig and bay leaf from the cream mixture. Slowly pour the warm cream evenly over the potatoes.
Cover tightly with foil and bake for 1 hour, or until the potatoes are tender when pierced with a knife.
Remove the foil, sprinkle the remaining cheese over the top, and bake uncovered for another 15 to 20 minutes, until bubbly and golden.
Let the potatoes rest for 10 minutes before serving.