.cfg config helpful when all you need just simply additional options.
Just name the cfg like "yourmodule.nim.cfg" and Nim compiler will only use that option when you try to compile "yourmodule.nim", it won't be used when you compile "anothermodule.nim".