Nim has multiple garbage collectors you can change at compile time. Here's the --gc option from the documentation.
--gc:refc|v2|markAndSweep|boehm|go|none|regions
I don't know if this is up to date or not. There's an open issue on github to improve the documentation on the garbage collector.