points by alexandrutocar 18 hours ago | 0 comments
Exactly my thoughts. You can even go as far as `nix eval .#<attr> --json --apply <expr>` to transform whatever your flake outputs list into your desired format and then presenting it as JSON. Then you can consume the JSON and process it with a language of your choice. Or you can extend the standard library with your own primitives, types and tricks and do whatever you want to do in Nix. The switch to other language is worth only if processing that you are doing becomes too slow or too clunky in Nix - both are subjective, so I personally do the processing in Nix and export it only if I want AI in the loop e.g. giving my packages and services as context to siff through changelogs of flake updates to make summaries with information relevant to my systems.
Aún no hay comentarios.