Skip to content

doc: add nix-cache-info format documentation#15006

Merged
edolstra merged 1 commit intoNixOS:masterfrom
roberth:doc-nix-cache-info
Jan 19, 2026
Merged

doc: add nix-cache-info format documentation#15006
edolstra merged 1 commit intoNixOS:masterfrom
roberth:doc-nix-cache-info

Conversation

@roberth
Copy link
Member

@roberth roberth commented Jan 16, 2026

Document the nix-cache-info file format used by binary caches, including the StoreDir, WantMassQuery, and Priority fields, their behavior, and links to related store options.

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

error: binary cache 'https://example.com' is for Nix stores with prefix '/nix/store', not '/home/user/nix/store'
```

If `nix-cache-info` is missing, Nix attempts to create one with only `StoreDir` set.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should probably be somewhere else (e.g. at the top of this file or in a section about creating nix-cache-info).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved outside the protocols part, to binary-cache-substituter.md

Document the nix-cache-info file format used by binary caches, including
the StoreDir, WantMassQuery, and Priority fields, their behavior, and
links to related store options.
@roberth roberth force-pushed the doc-nix-cache-info branch from 6ad3178 to b3df7f8 Compare January 17, 2026 12:31
@edolstra edolstra added this pull request to the merge queue Jan 19, 2026
Merged via the queue into NixOS:master with commit 3a42138 Jan 19, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants