Change root: Difference between revisions

imported>Deepfire
Added `--option sandbox false` to the `nixos-enter` section.
imported>Ahoneybun
m Adds the mount command for /run from the host OS so that rebuild command works.
Line 36: Line 36:
mount -o bind /proc /mnt/proc
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt /nix/var/nix/profiles/system/activate
chroot /mnt /nix/var/nix/profiles/system/activate
chroot /mnt /run/current-system/sw/bin/bash
chroot /mnt /run/current-system/sw/bin/bash