As someone elase said, it’s not really coding but more like writing a configuration. If you need an example (I’m using AMD so there will be some changes required) you can check out my own config at gitlab.com/theshatterstone/nix-conf
Edit: Also, the note on shebangs applies to all scripts within NixOS.