Preheat your oven to 350°F (175°C). Wash the potatoes thoroughly, then peel them completely.
Using a mandoline slicer or a sharp knife, cut the potatoes into thin, uniform slices about 1/8-inch thick. Place the sliced potatoes in cold water to prevent browning while you prepare the other components.
In a medium saucepan over medium heat, melt the butter. Add the minced garlic and cook for about 30 seconds until fragrant but not browned.
Sprinkle the flour over the melted butter and whisk continuously for 2 minutes to cook out the raw flour taste.
Gradually add the milk and cream, whisking constantly to prevent lumps. Continue cooking for 5-7 minutes until the mixture bubbles gently and thickens enough to coat the back of a spoon.
Remove from heat and stir in the dried thyme, nutmeg, 1 teaspoon salt and 1/2 teaspoon black pepper.
Butter a 9x13 inch baking dish generously. Drain the potatoes and pat them dry with paper towels.
Begin layering by placing one-third of the potatoes in the bottom, slightly overlapping the slices. Scatter one-third of the sliced onions over the potatoes, then pour one-third of the cream sauce over top. Sprinkle with one-third of the grated cheese.
Repeat this layering process two more times, finishing with the sauce and cheese on top.
Cover the baking dish with aluminum foil and bake for 45 minutes.
Remove the foil and bake for an additional 25-30 minutes until the top is bubbling and beautifully golden brown. The potatoes should be fork-tender throughout.
Let the scalloped potatoes rest for 15 minutes before serving. Garnish with chopped parsley.