3 ms·
It’s mostly about using the right tool for the right job. The Nix language is used for large scale configuration, not scripting. Anything that requires scriptin
by soraminazuki 5y ago
It’s mostly about using the right tool for the right job. The Nix language is used for large scale configuration, not scripting. Anything that requires scripting is offloaded to Bash. As a result of that, Nix resembles JSON but with variables and lambdas to make writing complex configurations easier. The competitor of the Nix language is not Bash or Python, it’s JSON and YAML.
- stelonix 5y agoA friend uses YAML in that way. Each entry is valid JS code. The result is you have a mixed declarative-imperative configuration language. It's very powerful and I have found a few uses too. The best part is that the evaluator is at most 30 lines of code.