01 -
Mix flour and salt in a bowl. Cut in the cold butter until pea-sized pieces remain. Stir in the egg yolk and 2 tablespoons ice water, adding 1 more tablespoon only if needed. Press into a disk, wrap, and chill for 30 minutes.
02 -
Heat olive oil in a skillet over medium-low heat. Add onions and salt. Cook, stirring often, until soft and golden, 18-22 minutes. Stir in thyme during the last minute, then cool slightly.
03 -
Heat the oven to 375°F (190°C). Roll the dough into a 9-inch tart pan. Prick the base, line with parchment, add pie weights, and bake for 15 minutes. Remove weights and bake 5 minutes more.
04 -
Whisk cottage cheese, cream, eggs, Parmesan or Gruyere, black pepper, and nutmeg until combined. Blend the mixture briefly if you prefer a smoother custard.
05 -
Spread about two-thirds of the cooked onions over the warm tart shell. Pour in the cottage cheese filling and scatter the remaining onions over the top.
06 -
Bake for 25-30 minutes, until the edges are set and the center has a slight wobble. Cool for at least 15 minutes before slicing. Garnish with extra thyme if desired.