The standard way of doing this sort of thing is to do a CTRNAND transfer, which will also preserve your Mii Plaza data – if that's important to you, and if you've backed it up recently.
You will also eventually have to call Nintendo if you want to link your NNID to a new console.