[Nix-dev] Copy a closure to machine with no Nix installed on it

Volth volth at volth.com
Thu Mar 2 18:06:59 CET 2017


Yes, "nix-store -qR ..." and then "rsync" seems a simple and promising solution.
Thank you!

On 3/2/17, Tomasz Czyż <tomasz.czyz at gmail.com> wrote:
> I assume you could do
> nix-store --export or nix-store --dump to prepare archive
> or you can query nix store for all dependnecies and with that list you can
> copy them using method of your choice
>
>
> 2017-03-02 16:38 GMT+00:00 Volth <volth at volth.com>:
>
>> Hello
>>
>> What is a good way to copy a closure to a Linux machine where Nix is
>> not installed (and it is tricky to install: 1. there is only root
>> account and 2. there may be no Internet access) ?
>>
>> "nix-copy-closure" expects "nix-store" on the target machine.
>>
>> Would "nix-store" be a single executable with no dependencies, it
>> could be uploaded beforehand, but it has a lot of dependencies so its
>> uploading is also the task of uploading a closure to a machine without
>> Nix...
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
>
>
> --
> Tomasz Czyż
>


More information about the nix-dev mailing list