Installing from Linux: Difference between revisions
imported>Chuangzhu chroot works well on some systems |
imported>Guisanpea m Update to nixos 21.11 |
||
| Line 26: | Line 26: | ||
# cd ~ | # cd ~ | ||
# mkdir -p inst host/nix | # mkdir -p inst host/nix | ||
# wget https://channels.nixos.org/nixos-21. | # wget https://channels.nixos.org/nixos-21.11/latest-nixos-minimal-x86_64-linux.iso | ||
# modprobe loop | # modprobe loop | ||
# mount -o loop latest-nixos-minimal-x86_64-linux.iso inst | # mount -o loop latest-nixos-minimal-x86_64-linux.iso inst | ||
| Line 85: | Line 85: | ||
Before executing nixos-install you might want to run nixos-checkout to obtain the most recent version of packages to be installed into your NixOS system. You might need to copy /etc/resolv.conf from the host to the target system. | Before executing nixos-install you might want to run nixos-checkout to obtain the most recent version of packages to be installed into your NixOS system. You might need to copy /etc/resolv.conf from the host to the target system. | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# (chroot) NIX_PATH="nixpkgs=channel:nixos-21. | # (chroot) NIX_PATH="nixpkgs=channel:nixos-21.11" nixos-install | ||
</syntaxhighlight> | </syntaxhighlight> | ||