Inhomogeneous chiral condensate in the quark-meson model