FAQ: Difference between revisions

imported>Dezgeg
imported>Dezgeg
How do I enable chrooted builds on non-NixOS?: Fix plainly incorrect information
Line 276: Line 276:
Two options have to be added to make chrooted builds work on Nix, ''build-use-chroot'' and ''build-chroot-dirs'':
Two options have to be added to make chrooted builds work on Nix, ''build-use-chroot'' and ''build-chroot-dirs'':


<!-- TODO: WTF is the build-chroot-dirs doing here??? -->
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
# /etc/nix/nix.conf
# /etc/nix/nix.conf
Line 284: Line 285:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
nix.extraOptions = ''
nix.useSandbox = true;
  build-use-sandbox = true
'';
</syntaxhighlight>
</syntaxhighlight>
== I cannot find $package when running <code>nix-env -qaP</code> even with channels configured ==
== I cannot find $package when running <code>nix-env -qaP</code> even with channels configured ==