X-Files star David Duchovny has landed a deal to star in the TV adaptation of his new novel, Truly Like Lightning.