Here's what I'd do with those ingredients for that outcome.....
Buy Jus-Roll savoury pastry for the crust
Thinly slice floury potatoes
Cook onion, (prob a bit of garlic too near the end) cut up bacon and peas (I would omit peas, but that's me) in some butter till bacon crispy and onion translucent. Let it cool.
Mix 2 eggs, a bit of milk, and salt and pepper in a separate bowl. A bit of white wine instead of milk would work too if you're feeling fancy.
Put pastry in pie pan and pre-cook that for about 5/8 mins to stop the rest making it too soggy.
1 Layer of potatoes flat in the bottom of the dish
Dust with a thin layer of flour and put a few dabs of butter
Pour on some of the egg mix
Sprinkle on the cooled onion bacon mix
Repeat potato layer, flour layer, egg layer, bacon/onion layer till your dish is full, with a layer of flour and butter on the top.
Put the Jus-rol lid on and vent it with a knife, flute the edges
Brush lid with milk or with egg wash
Bake for probably 45mins to an hour on a mid-hot temp (200 or so)
Good luck! 