[Nix-dev] Disable build-use-chroot on command line
Michael Raskin
7c6f434c at mail.ru
Tue Aug 16 15:17:29 CEST 2011
>> I have some odd hacks that do not work when the setting `build-use-chroot' is true.
>> Is it possible to disable this setting with a command line switch on the nix-build invocation?
>
>Yes, "nix-build --option build-use-chroot false". However this doesn't work
>when you're building through the Nix daemon.
Ensuring you don't use Nix daemon is done from root as "export NIX_REMOTE= "
By the way, isn't simply editing /etc/nix.conf build-chroot-dirs (non-NixOS)
or nix.chrootDirs (NixOS) enough for your goals?
More information about the nix-dev
mailing list