reduce attic to 500MB
Some checks failed
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 10s
Check Nix formatting / Perform Nix format checks (pull_request) Successful in 2m30s
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (pull_request) Failing after 14m18s

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2025-02-02 14:03:23 -05:00
parent 0bae399d47
commit e2931be9af
No known key found for this signature in database
GPG Key ID: 47940175096C1330

View File

@ -7,7 +7,7 @@ set -e
# retrieve all paths under 100M
nix_paths=$(nix path-info --json --all --closure-size \
| jq 'map_values(.closureSize | select(. < 8e8)) | to_entries | sort_by(.value)' \
| jq 'map_values(.closureSize | select(. < 5e8)) | to_entries | sort_by(.value)' \
| jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g')
readarray -t nix_path_array < <(echo "$nix_paths")