A husband and wife cannot by any contract with each other alter their marital relations, except that they may agree in writing to an immediate separation and may make provision for the support of either of them and of their children during such separation. The mutual consent of the parties is a sufficient consideration for such a separation agreement.
N.D.C.C. § 14-07-07