>From [what I can >see](https://github.com/nim-lang/Nim/compare/devel...zevv:Nim:linux-kernel), >the modifications in the compiler was only to add a command line facility to >the Nim compiler in the Makefile.
That project of @zevv in the Github could be used as a base for writing kernel modules, I think.