Preheat oven to 180C/350F
Heat the olive oil in a frying pan. Add the finely sliced onion and fry gently for 5 minutes until soft.
Add the sliced garlic and fry for a further minute.
Add the flour and cook gently for a couple of minutes.
Gradually add the milk, stirring constantly to avoid lumps.
Add the vegetable stock and bring to a gentle boil. Reduce the heat and simmer, stirring until the sauce thickens.
Add the thyme, nutritional yeast and salt and black pepper to taste. Remove from heat.
Use a little vegan butter to lightly grease your casserole dish.
Pour a little sauce into the base of your dish and spread evenly.
Layer in your thinly sliced potatoes.
Pour over the remaining sauce, ensuring all the potatoes are covered.
Cover and cook for 20 minutes in the preheated oven.
Remove the lid and cook for a further 20 minutes until the potatoes are fork tender and the sauce is browned and bubbly.