Media executive Peter Chernin’s TV operation is moving from Fox to NBCUniversal under a new two-year deal.

Following the expiration of a five-year pact at 20th Century Fox TV, Chernin Entertainment, which produces hit Fox sitcom “New Girl,” will now produce and develop projects for NBC through Universal Television while working with the studio’s writers.

The arrangement excludes cable and digital, allowing Chernin the option to produce independently in those areas and other streaming platforms.

“This one-of-a-kind deal provides us with the ability to develop great programming while maintaining the autonomy and flexibility we need to continue to be successful in this new era of television,” Chernin said in a statement.

Though “New Girl” has been a big success, it’s also the only Chernin series currently on the air. Other notable shows launched by the company but since cancelled include “Terra Nova,” “Touch” and “Breakout Kings.”

Still, in a statement, NBC Chairman Bob Greenblatt called Chernin “one of the most forward-thinking and successful producers and executives in the media business today.”

Chernin moved into producing in 2009 after stepping down as president of Fox parent News Corp. In November, the movie division of Chernin Entertainment renewed its feature-film pact with Fox where it has been behind the relaunched “Planet of the Apes” franchise and hit Melissa McCarthy comedies “The Heat” and “Spy.”