Step 1: Preheat the oven to 400F. Peel and slice the potatoes then set them aside.
Step 2: Grease the baking dish and add half the sliced potatoes to the dish, trying to make an even layer.
Step 3: Preheat a large pan over medium heat and add the coconut oil. Once it's melted add the chopped onion and minced garlic and cook for a few minutes.
Step 4: Add nutritional yeast and stir everything well to combine.
Step 5: Add the remaining ingredients (except for the almond flour) and stir to combine. Turn down the heat and let it cook for a few minutes, stirring frequently.
Step 6: Add the almond flour and cook for another few minutes, allowing the sauce to thicken.
Step 7: Pour half of the sauce over the potatoes, then add the remaining potatoes to the dish and top with the remaining sauce. Cover them with tin foil and bake for 30mins. Remove the foil and bake for another 20-25mins.