IPFS Private cluster settings

It looks like in order to create a private cluster i need to export LIBP2P_FORCE_PNET=1 as an enviromental variable. Is it possible to define this in the config file instead of an enviromental variable?

LIBP2P_FORCE_PNET=1 isn’t required, check out the docs here. That variable just enforces Kubo to use the private network, and not operate otherwise. I don’t believe it has a configuration option via Kubo. You should be safe simply putting the swarm.key in the correct location and clearing your bootstrap list though.