[Nix-dev] nix-multi-user installation script

Wout Mertens wout.mertens at gmail.com
Thu Nov 6 14:44:55 CET 2014


Aha so from
https://github.com/NixOS/nixpkgs/blob/f079cd1721cd50d188f3c32387a074bf00afb34d/nixos/modules/services/misc/nix-daemon.nix#L29-L32

(incidentally, I'd love it if somehow that was generated before running the
rest of a nixos-rebuild, so nix options take hold before building)

On Thu Nov 06 2014 at 2:41:54 PM Peter Simons <simons at cryp.to> wrote:

> Hi Wout,
>
>  >> The chroot build feature seems to require a statically linked bash.
>  >
>  > Not really - you just need to make sure all the libraries are in the
>  > chroot. I would think that it just works on Linux, where everything is
>  > linked only to /nix/store (unless the build got tainted).
>
> it "just works" on NixOS, because the system auto-generates an appropriate
> /etc/nix/nix.conf file that includes all bits required by "bash" into the
> chroot environment. For example:
>
>  | build-chroot-dirs = /bin/sh=/nix/store/j9z5...-bash-4.2-p51/bin/bash
> /nix/store/ghvr...-linux-headers-3.7.1 /nix/store/i11d...-glibc-2.19
> /nix/store/j9z5...-bash-4.2-p51
>
> On other Linux systems, this needs to be configured manually.
>
> I hope this helps,
> Peter
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141106/009d7aa7/attachment.html 


More information about the nix-dev mailing list