Preheat oven to 350 degrees, and spray a 9x13 baking dish with nonstick cooking spray.
Add olive oil, butter, and sliced onions to a medium skillet over medium heat. Season with a bit of salt and pepper. Sauté for about 5 minutes. Stir in minced garlic. Sauté for another 2-3 minutes until onions are translucent.
In a large bowl combine the sliced sweet potatoes, heavy cream, thyme, nutmeg, kosher salt, and black pepper. Stir in sautéed onions, 1 cup of the Gruyere cheese, and the white cheddar cheese.
Pour mixture into prepared baking dish, and arrange evenly, press down lightly. Top with remaining 3/4 cup of Gruyere cheese. Bake for 1 hour and 15 minutes until bubbly and golden brown on top. Allow to rest for about 10 minutes before serving.
For best results use a mandolin slicer for your potatoes for an even thin slice on all pieces.
This recipe would be equally delicious with russet or red potatoes, or a combination of root vegetables (potatoes, carrots, parsnips).
Can be made ahead of time, and re-heated in a preheated 350 degree oven for 20-30 minutes or until warmed through and bubbly again.