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.
NixOS and Kagi user here. Hacker News often is the most reliable search result there is. Gists aren’t (they become easily deleted, unlike HN comments).