Alpha- and Omega-deformations from fluxes in M-theory