[Nix-dev] deploying nix-built software to non-nix linux systems

Luca Bruno lethalman88 at gmail.com
Tue Nov 4 10:24:15 CET 2014


On 04/11/2014 00:36, Anders Papitto wrote:
> Hello,
>
> I'm interested in using nix/nixos to build an application with its
> full set of dependencies, and then deploy it to non-nixos machines as
> a self-contained package (up to and including the system libraries),
> without root privileges. Ideally I would like to not require that any
> nix tools be available on the target system. The perfect workflow
> would be something like
>
> # on any linux system
> $ wget https://some/path/to/my-app.tar.gz
> $ tar -xf my-app.tar.gz
> $ ./my-app/bin/my-app # run the application -> it should not try to
> access anything outside ./my-app
>
> Is this possible? I haven't been able to find any resources on
> deploying to a non-nix systems.
You don't have to install nix to run packages on other systems, you can
simply copy the closure of it.
However usually packages are stored into /nix, which requires root
access. You may
try something like fakechroot or proot.


More information about the nix-dev mailing list