nix-serve
github.com
- Free plan
- Linux
- Self-hosted
What nix-serve is
nix-serve is a standalone server that makes a Nix store available as a binary cache. Other Nix installations can use the cache by passing its URL with `--substituters`, allowing them to retrieve store paths from the server. The documented command starts nix-serve with `nix run github:edolstra/nix-serve`; its example serves on localhost port 5000, and `nix store ping --store http://localhost:5000` checks the server. The instructions assume a flake-enabled version of Nix. The project is free and open source under the LGPL-2.1 license, for Linux and self-hosted use. Cache signing is supported through a generated key pair and the `NIX_SECRET_KEY_FILE` environment variable; served paths can be checked with `nix verify` and a trusted public key. nix-serve uses the Starman web server, and its documentation points to Starman for additional flags, including an access-log example. The repository is under the edolstra GitHub account.
Who it suits
It suits Nix users who want to run a self-hosted binary cache for other Nix installations. Its usage instructions are aimed at users with a flake-enabled version of Nix.
Good to know, and what to watch
- Free and open source under LGPL-2.1
- Lets other Nix installations use a binary cache
- Documents signing and trusted-key verification
- Includes a server check command
- Usage assumes a flake-enabled Nix version
- Listed platform is Linux
- Requires self-hosted deployment
Plans
Every plan and pricenix-serve
Open source
The verdict
nix-serve focuses on serving a Nix store as a binary cache, with documented setup, signing, and verification steps. It is a fit for operators prepared to run and configure a self-hosted service.
What the maker publishes
- Access logging
- The README gives `--access-log /dev/stderr` as an example Starman flag. source
- Cache check
- The README shows checking the server with `nix store ping --store http://localhost:5000`. source
- Cache integration
- Other Nix installations can use the cache by passing its URL to `--substituters`. source
- Cache signing
- The README documents signing the binary cache using a generated key pair and the `NIX_SECRET_KEY_FILE` environment variable. source
- Check server
- The README shows checking the server with `nix store ping --store http://localhost:5000`. source
- Deployment
- The README describes running nix-serve locally as a standalone binary cache server. source
- License
- The GitHub repository lists the project under the LGPL-2.1 license. source
- License
- The repository lists the project under the LGPL-2.1 license. source
- Maintainer
- The repository owner is Eelco Dolstra, whose GitHub profile lists Utrecht, Netherlands. source
- Nix integration
- The README says to pass the server URL to Nix with `--substituters` to use the cache. source
- Nix requirement
- The usage instructions assume a flake-enabled version of Nix. source
- Publisher
- The repository is under the GitHub account edolstra. source
- Purpose
- nix-serve is a small utility that serves a Nix store as a binary cache for use as a substituter by other Nix installations. source
- Purpose
- nix-serve serves a Nix store as a binary cache that other Nix installations can use as a substituter. source
- Requirements
- The usage instructions assume a flake-enabled version of Nix. source
- Run
- The README shows starting it with `nix run github:edolstra/nix-serve`, serving on localhost port 5000. source
- Signature verification
- The README demonstrates verifying served store paths with `nix verify` and a trusted public key. source
- Signature verification
- The README shows verifying served store paths with `nix verify` and the cache's trusted public key. source
- Signing
- The README explains how to sign the binary cache using a generated key pair and `NIX_SECRET_KEY_FILE`. source
- Standalone server
- The project describes nix-serve as a standalone Nix binary cache server. source
- Start command
- The README shows starting the server with `nix run github:edolstra/nix-serve`, serving on localhost port 5000. source
- Web server
- nix-serve uses the Starman web server, and its README points to Starman documentation for additional flags. source
- Web server
- nix-serve uses the Starman web server and accepts additional Starman flags. source
Checked against the maker's pages on 9 Oct 2026.