01 -
Combine quartered shallot, crushed garlic, whole thyme sprigs, heavy cream, and whole milk in a large pot. Heat over medium-high, bringing to a gentle simmer while stirring occasionally. Remove from heat, cover, and let steep for 30 minutes to infuse flavors.
02 -
Preheat oven to 175°C with rack in center position. Butter a 33 cm x 23 cm baking dish. Peel potatoes and slice them into 3 mm thick slices using a handheld mandoline or sharp knife. Transfer slices to a bowl and keep uncovered at room temperature.
03 -
Strain the infused cream mixture through a fine-mesh sieve into a bowl, discarding solids. Return strained cream to pot, stir in kosher salt, then add potato slices. Bring to a simmer over medium-high heat and cook, stirring occasionally, until potatoes are just tender, approximately 4 to 5 minutes, and sauce thickens.
04 -
Spread one-third of the potato and cream mixture into the prepared baking dish. Sprinkle evenly with one-third of the Gruyère, Parmesan, and half of the fresh thyme leaves. Repeat layers once more. Finish by adding the remaining potato mixture, Gruyère, and Parmesan. Reserve remaining thyme leaves for garnish.
05 -
Bake uncovered for 40 to 50 minutes, until bubbling and golden brown on top. Remove from oven, let rest for 5 minutes, then sprinkle reserved thyme leaves over the surface before serving.