feat(blog): add post about package mirrors #50

Merged
jalil merged 1 commit from push-mvolrtzunqtk into main 2026-01-24 12:41:46 +01:00
Owner
No description provided.
jalil self-assigned this 2026-01-24 12:39:20 +01:00
feat(blog): add posts about package mirrors
All checks were successful
/ checks (x86_64-linux, treefmt) (pull_request) Successful in 2s
/ build (pull_request) Successful in 2s
/ report-size (pull_request) Successful in 4s
055292a0d9
Signed-off-by: Jalil David Salamé Messina <jalil.salame@gmail.com>

Flake output sizes

Definitions
  • Name: the name of the package/configuration.
  • Size: the closure size (size on disk/NAR size + all transitive dependencies).
  • NAR Size: the size of the build output (package without the dependencies).
  • [NAR] Size Change: the amount changed compared to the main branch.
Tips on reading this data
  • For NixOS/Home-Manager configurations you generally care only about the Size (closure size/size on disk).
    • Reduce the Size by disabling unneeded services/default packages.
  • For Packages you care about both the Size and the NAR Size.
    • Reduce the NAR Size by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc.
    • Reduce the Size by reducing the dependencies (e.g. buildInputs).
    • Don't worry too much about size, some dependencies are deduplicated, e.g. glibc adds ~40MiB to the Size, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. musl is not gonna improve things.

Packages

Name Size Size Change NAR Size NAR Size Change
default 5.4MiB 1.3MiB 5.4MiB 1.3MiB
site 5.4MiB 1.3MiB 5.4MiB 1.3MiB
<!-- AUTOGENERATED by nix-flake-outputs-size action --> ## Flake output sizes <details><summary><b>Definitions</b></summary> - `Name`: the name of the package/configuration. - `Size`: the closure size (size on disk/NAR size + all transitive dependencies). - `NAR Size`: the size of the build output (package without the dependencies). - `[NAR] Size Change`: the amount changed compared to the main branch. </details> <details><summary><b>Tips on reading this data</b></summary> - For NixOS/Home-Manager configurations you generally care only about the `Size` (closure size/size on disk). - Reduce the `Size` by disabling unneeded services/default packages. - For Packages you care about both the `Size` and the `NAR Size`. - Reduce the `NAR Size` by reducing the size of the build outputs, e.g. don't copy unnecessary data to the $out dir, optimize binaries for size, etc. - Reduce the `Size` by reducing the dependencies (e.g. `buildInputs`). - Don't worry too much about size, some dependencies are deduplicated, e.g. `glibc` adds ~40MiB to the `Size`, but is generally shared by ~every binary on the system, so, chances are, you are already including it from somewhere else and statically linking with e.g. `musl` is not gonna improve things. </details> ## Packages | Name | Size | Size Change | NAR Size | NAR Size Change | |------|-----:|------------:|---------:|----------------:| | `default` | 5.4MiB | 1.3MiB | 5.4MiB | 1.3MiB | | `site` | 5.4MiB | 1.3MiB | 5.4MiB | 1.3MiB |
jalil force-pushed push-mvolrtzunqtk from 055292a0d9
All checks were successful
/ checks (x86_64-linux, treefmt) (pull_request) Successful in 2s
/ build (pull_request) Successful in 2s
/ report-size (pull_request) Successful in 4s
to ffc90a112c
All checks were successful
/ checks (x86_64-linux, treefmt) (pull_request) Successful in 3s
/ build (pull_request) Successful in 2s
/ report-size (pull_request) Successful in 4s
2026-01-24 12:40:13 +01:00
Compare
jalil force-pushed push-mvolrtzunqtk from ffc90a112c
All checks were successful
/ checks (x86_64-linux, treefmt) (pull_request) Successful in 3s
/ build (pull_request) Successful in 2s
/ report-size (pull_request) Successful in 4s
to 0eee95eac5
All checks were successful
/ checks (x86_64-linux, treefmt) (pull_request) Successful in 2s
/ build (pull_request) Successful in 2s
/ report-size (pull_request) Successful in 4s
/ checks (x86_64-linux, treefmt) (push) Successful in 2s
/ build (push) Successful in 1s
/ report-size (push) Successful in 1s
2026-01-24 12:41:12 +01:00
Compare
jalil merged commit 0eee95eac5 into main 2026-01-24 12:41:46 +01:00
jalil deleted branch push-mvolrtzunqtk 2026-01-24 12:41:46 +01:00
Sign in to join this conversation.
No reviewers
No labels
bug
chore
enhancement
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jalil/blog!50
No description provided.