President Trump will nominate a law partner of former Mayor Rudolph Giuliani as Manhattan’s next top federal prosecutor, The Post has learned.

Geoffrey Berman was appointed Wednesday afternoon as interim US attorney for the Southern District of New York by Attorney General Jeff Sessions, the Justice Department announced.

Trump will ask the US Senate to confirm Berman within the next 120 days, according to a source familiar with the process.

Berman would fill the seat formerly held by Preet Bharara, who Trump fired in March, along with 45 other US attorneys.

Berman is a partner in the law firm of Greenberg Traurig, where Giuliani is also a partner and serves as chairman of its Cybersecurity, Privacy and Crisis Management Practice.

A Stanford-trained lawyer, Berman was a Manhattan federal prosecutor from 1990 to 1994, after previously serving three years as an associate under Independent Counsel Lawrence Walsh during the Iran/Contra scandal.

Joon Kim, who had been Bharara’s No. 2, has been serving as acting Manhattan US attorney since then.

Sessions also announced the interim appointment of Richard Donoghue, chief counsel for software company CA Technologies, as US attorney in Brooklyn.

Before taking the CA Technologies job in 2011, Donoghue was chief of the criminal division in the Brooklyn US Attorney’s Office.

The top spot there has been filled by Bridget Rohde since former US Attorney Robert Capers was ousted by Trump.

Berman and Donoghue are among 17 interim appointments announced by Sessions, who said they were required under the federal Vacancies Reform Act, which limits how long a first assistant US attorney can serve as acting US attorney.

“Each has excellent prosecution skills and the temperament necessary to succeed in this critical role — and they have already proven that with a number of accomplishments on behalf of the American people,” Sessions said.

“I want to thank them for stepping up to take this difficult but noble job.”