Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 675 Bytes

CHEATSHEET.md

File metadata and controls

37 lines (25 loc) · 675 Bytes

Cheat sheet

Show GC roots

nix-store --gc --print-roots | grep -v "{censored}" | column -t | sort -k3 -k1

List all packages

nix-store -q --requisites /run/current-system | cut -d- -f2- | sort | uniq

Find biggest packages

nix path-info -hsr /run/current-system/ | sort -hrk2 | head -n10

Find biggest closures (packages including dependencies)

nix path-info -hSr /run/current-system/ | sort -hrk2 | head -n10

Show package dependencies as tree

nix-store -q --tree $(realpath $(which htop))

Show package dependencies including size

nix path-info -hSr nixpkgs#htop