Change root: Difference between revisions
imported>Nh2 Show manual chroot |
imported>Deepfire Added `--option sandbox false` to the `nixos-enter` section. |
||
Line 11: | Line 11: | ||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ nixos-enter | $ nixos-enter | ||
</syntaxHighlight> | |||
Note, that when using <code>nixos-rebuild</code> inside the environment provided by <code>nixos-enter</code>, you have to give <code>nixos-rebuild</code> subcommands the <code>--option sandbox false</code> option, otherwise derivation builds will fail with the following error: | |||
<syntaxHighlight lang=console> | |||
error: cloning builder process: Operation not permitted | |||
error: unable to start build process | |||
</syntaxHighlight> | </syntaxHighlight> | ||