nimrod --noMain c ... you then have to call NimMain() on your own. This is all explained here: https://github.com/Araq/Nimrod/blob/devel/doc/backends.txt
(Yes, we'll get better docs for the upcoming release.)