How do I open NEF files with GIMP?

Try UFRaw. You didn't specify the OS in your question but it's available for Windows, Linux and Mac