2 releases

0.1.1 Apr 26, 2024
0.1.0 Mar 28, 2024

#902 in Network programming

Download history 136/week @ 2024-03-27 20/week @ 2024-04-03 130/week @ 2024-04-24 3/week @ 2024-05-01

133 downloads per month

MIT license



This is a re-implementation of Nix's remote build protocol. The main objectives are:

  • to express the protocol declaratively, as much as possible;
  • to document the protocol better than it has been so far;
  • to provide a library for tools making use of Nix remote builds.

So far, the library has been used to implement a nix remote proxy, which forwards commands to a real nix-daemon, while inspecting the commands and the responses. I believe that we have implemented all worker ops used in the current version of the nix protocol. (Nix itself supports more ops, but only for backwards-compatibility.)


To build the project and use nix to connect to it as remote, run:

cargo build
nix store ping --store 'ssh-ng://localhost?remote-program=/PATH/TO/nix-remote-rust/target/debug/nix-remote'


~118K SLoC