Visualize your Nix flake.lock!
This project provides facilities for parsing and analyzing flake.lock files.
$ nix shell github:nikitawootten/flake-graph nixpkgs#graphviz \
--command sh -c 'flake-graph flake.lock | dot -Tsvg > flake-lock.svg'Pass --size to annotate each input with the on-disk size of its source in the Nix store.
$ nix shell github:nikitawootten/flake-graph nixpkgs#graphviz \
--command sh -c 'flake-graph --size flake.lock | dot -Tsvg > flake-lock.svg'This invokes nix to resolve each input and may fetch inputs from the network if they are not already in the store.
Flake lock diagram of nikitawotten/infra