Wash and peel the vegetables, prepare the greens. Rinse the buckwheat thoroughly, soak for 1 hour and then drain the water.
Chop the onion and grate the carrots on a coarse grater. Fry onions and carrots in sunflower oil until golden brown. Cut the mushrooms into medium-thick slices and add to the pan. Continue cooking over high heat for a few more minutes. Cut the ham into slices 0.5 cm thick. Chop the dill.
Preheat oven to 200°C. Wash the buckwheat and transfer it to a baking bag. Add the ham and the contents of the pan to it. Sprinkle salt, dried spices and chopped dill on top. Pour boiling water into the sleeve and tie. Place the sleeve in the oven. When there is no liquid left and the buckwheat becomes crumbly, remove and stir.
Serve baked buckwheat hot as an independent dish. Can be supplemented with fresh vegetable salad or pickles.