A former janitor accused of trying to sell broken nuclear weapons equipment from a shuttered Tennessee facility has pleaded guilty.

Roy Lynn Oakley pleaded guilty Monday to one count of disclosure of restricted data before a federal District Court judge in Knoxville.

Under the plea agreement, he will serve six years in prison and three years of supervised release.

Authorities said Oakley was a contract worker at the former K-25 uranium enrichment plant in Oak Ridge when he was arrested in 2007 after offering the gear to an undercover agent. Prosecutors say Oakley took home classified equipment he was supposed to be destroying and tried to sell it to the French government.

The 67-year-old Harriman man was scheduled to face trial after pleading not guilty, but his lawyers filed a motion last week to change his plea.