If you want to know what the result could look like I would recommend the following blog post by Christine Dodrill where she shows off her setup for working with Go code in Nix:
https://christine.website/blog/i-was-wrong-about-nix-2020-02...
It's more focused on the result then on how you get there, but that result really impressed me.