Crates.io | nix-remote |
lib.rs | nix-remote |
version | 0.1.1 |
source | src |
created_at | 2024-03-28 18:51:18.15907 |
updated_at | 2024-04-26 01:44:29.263972 |
description | The nix remote protocol |
homepage | |
repository | https://github.com/tweag/nix-remote-rust |
max_upload_size | |
id | 1189269 |
size | 98,030 |
This is a re-implementation of Nix's remote build protocol. The main objectives are:
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'