$ \mathcal{N} $ =1 geometries via M-theory