Former Formula One driver Kevin Magnussen will race for Peugeot in the World Endurance championship and the Le Mans 24 Hours race in 2022, the French manufacturer said on Monday.