Hi nyl,
I have some simple nim SDL2 examples here from a previous post comparing golang and nim executables.
Be sure that you go through the steps to install SDL2 on your system as per the instructions from the SDL people, and that you install the nim SDL2 library wrapper using nimble.