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.