Hi Anders, On Tue, Nov 4, 2014 at 1:36 AM, Anders Papitto <[email protected]> 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. >
Not easily but you can do that in two cases: 1. If you haven't root privileges, but can ask admin to make /nix owned by you 2. If you have recent kernel (>=3.8) with CONFIG_USER_NS enabled (which is by default), -- Paul _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
