Is there a documention for this?
https://nim-lang.org/docs/nimc.html
The idea is that you replace nimbase.h with yours. You can #include "nimbase.h" later