A Furnas County deputy sent to the scene found Amtrak employees holding Wilson, court documents said.
In his detention order, it was written that Wilson "had great potential and the inclination to cause great harm to persons on the train and perhaps others in a nearby community if the train had actually wrecked". Authorities believe he was headed home to Missouri.
The charges stem from an October incident in which he allegedly broke into a secured area of an Amtrak train while armed, forced the train to stop and threatened Amtrak staff.
Passenger Bobbie Garris provided this account of the incident to NTV News of Axtell, Nebraska.
'We lunged forward in our seats and all the power went out, it went completely black, ' Garris said. "We could smell something burning, and I'm going to guess that was the brakes".
Passengers sat in darkness for more than an hour, she said.
Just before 2 a.m. on October 22, an assistant conductor felt the train braking, searched for what was causing it and found Wilson in the engineer's seat of the follow engine "playing with the controls", Czaplewski wrote.
He was behaving erratically, goaded staff with profanities and wrestled with them, sometimes reaching for his waistband. The conductor said that Wilson first appeared to be lucid and then started "saying insane things about going to the moon".
Wilson was taken to the Furnas County Jail at the time. The deputy then located a speedloader - a device used to quickly reload a revolver - as well as a fully-loaded.38-caliber handgun in Wilson's front waistband.
A relative who had moved in with Wilson in a St. Charles home on Reservoir Avenue last June told investigators that Wilson had been "acting odd". He also had a backpack with three more speed loaders, a box of ammunition, a knife, tin snips, scissors and a ventilation mask inside.
Wilson was also carrying a business card for the Detroit-based National Socialist Movement, one of the largest neo-Nazi groups in the U.S., according to the Southern Poverty Law Center. Wilson was also said to have images tied to white supremacy and how-to guides on killing people on his phone.
The documents "are often possessed and utilized by individuals and groups attempting or planning to commit criminal acts or acts of terrorism or violence", Czaplewski wrote in the affidavit. Olney, who lived with Wilson for at least four months, also told the Federal Bureau of Investigation that Wilson attended the white supremacist rally in Charlottesville in August with friends from the neo-Nazi group.
He told investigators Wilson "expressed an interest in "killing black people" and others besides whites, especially during the protests in St. Louis", the affidavit said.
Wilson, who is believed to have attended the deadly far-right rally in Charlottesville in August, is also suspected of pointing a gun at a black woman for no apparent reason while driving on Interstate 70 in 2016, Czaplewski wrote. The license plate of the man's auto tracked back to Wilson.
When members of the Federal Bureau of Investigation searched Wilson's St. Charles home they found a stockpile of gun accessories and ammunition behind a camouflaged panel. Federal Bureau of Investigation agents searching Wilson's home found 15 guns, a handmade shield, tactical vest, 11 AR-15 rifle ammunition magazines, a drum magazine for a rifle, ammunition, white supremacy documents, gunpowder and ammunition-reloading supplies.
His father, Michael Wilson, who was aware of his son's stockpile of weapons, also provided the Federal Bureau of Investigation with15 firearms, including handguns and rifles, and a tactical body armor.
Wilson was arrested in October on suspicion of felony criminal mischief, trespassing and weapon charges.
Last month, Wilson was ordered to have a mental competency evaluation.
Wilson has been ruled competent to stand trial.