The couple had been married for 17 years and have two children together

Former X-Files star David Duchovny now has an ex-wife in Téa Leoni.

The actor, 54, and Leoni, 48, are divorcing after 17 years of marriage, a source confirms to PEOPLE, adding that the two have been separated for months.

Get push notifications with news, features and more.

According to TMZ, the divorce papers were filed in June and cite “an irretrievable breakdown” as the cause of the split.

The former couple will reportedly share joint legal custody of their two children, son Kyd Miller, 12, and Madelaine West, 15, but Leoni will have primary physical custody, with Duchovny paying $8,000 a month in child support, as well as $40,000 a month in spousal support.

He will also reportedly be responsible for all other expenses relating to their kids, including summer camps, private school and college.

Want more stories like this?

Sign up for our newsletter and other special offers:

Thank you for signing up!