I'm using the following expressions to generate some DHCP & DNS config.
These work, but I fear I'm perhaps missing out on the use of some other functions available in the stdlib that could do this a bit "nicer".
I could let slurp = a: b: builtins.toString (catAttrs "${a}" (singleton b))
to trim it down a bit.
But I was wondering if anyone had any advice on how to write these better?
Some advice from tilpner on #nixos 🙏