DAPCHI, Nigeria—Nigeria said it is holding peace talks with a local Islamic State faction, in a test of whether a secular government can reach an accord with an offshoot of one the world’s most infamous international jihadist networks.

For more than a year, Nigerian envoys have met with representatives of Islamic State West Africa Province, Information Minister Lai Mohammed said Sunday. The discussions are being facilitated by the Swiss government, other officials said.

...