Did you really need to share 108 lines of code, inline, rather than a link to gist/similar?
The chances of people reading this discussion running NixOS are small, and of those I'm sure the ones who were interested could search the internet for examples.