There's a thread on this topic in the DIY forum:
https://forum.mrmoneymustache.com/do-it-yourself-forum!/producing-my-own-trekking-food/
Having tried it once, I'm enthusiastic. But don't spend a lot of money on a fancy dehydrator. I got mine for $5 at a yard sale.
We have invested in a Excalibur food dryer with 9 trays. But I also know of people who make dried trekking food in a very small dryer that can only dry food for 1 meal at the time. I use my machine very often, as I also dry plants and mushrooms from spring to autumn. I appreciate the machine. I can vary the temperature and program the time. And it has a lot of space. When I use half the amount of trays, I can also dry more bulky stuff.
For the process of drying trekking food, I usually have some long days after normal working days, maybe up to a week, to produce 15 meals. I make a variety of ingredients and then make meals out of it. And then dry some more stuff if I don't have enough of each vegetable. I seldom have too much, apart from a bunch of minced meat once. You can also put dried ingredients, or whole dried meals in the freezer, so you are sure it won't get spoiled.
For vegetarians: you can use cooked beans or lentils, turn them into a puree and dry them on a drying sheet. Sauce can also be dried on a drying sheet, after thickening it as much as you can on the stove. Vegetables are just cut very small and precooked for a while, before drying.
I use normal food from the shops for pasta/rice/mashed potatoes, all very short-cook stuff. And for sauce, I usually use brown sauces and cheese sauces from packs, but make tomato sauce myself. Keep in mind that you shouldn't dry ingredients with fat in then. That won't stay well very long.
It is important that your dryer supports that you put some form of sheet on the trays. You can replace official sheets (from Excalibur) by using baking sheets. I use el cheapo anto stick sheets for ovens.