From e3e5c8bc91e015b01a8544e5b64ba260589dd901 Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Sat, 27 Feb 2016 22:39:29 -0500 Subject: add docs for `nix-store --serve` --- doc/manual/command-ref/nix-store.xml | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'doc/manual/command-ref') diff --git a/doc/manual/command-ref/nix-store.xml b/doc/manual/command-ref/nix-store.xml index bf03c802b87d..22afdec93ecd 100644 --- a/doc/manual/command-ref/nix-store.xml +++ b/doc/manual/command-ref/nix-store.xml @@ -246,6 +246,64 @@ $ nix-build -r '<nixpkgs>' -A hello --check -K + + +Operation <option>--serve</option> + +Synopsis + + + nix-store + + + + + + +Description + +The operation provides access to +the Nix store over stdin and stdout, and is intended to be used +as a means of providing Nix store access to a restricted ssh user. + + +The following flags are available: + + + + + + Allow the connected client to request the realization + of derivations. In effect, this can be used to make the host act + as a build slave. + + + + + + + + +Examples + +To turn a host into a build server, the +authorized_keys file can be used to provide build +access to a given SSH public key: + + +$ cat <>/root/.ssh/authorized_keys +command="nice -n20 nix-store --serve --write" ssh-rsa AAAAB3NzaC1yc2EAAAA... +EOF + + + + + + + + + + Operation <option>--gc</option> -- cgit 1.4.1