I would like to use nixos as a development environment on my OSX machine. I’ve downloaded the latest nixos minimal image (nixos-minimal-22.11.1895.ab1254087f4-x86_64-linux.iso) and gone through the following steps.
Create a hard drive image:
qemu-img create -f qcow2 nix-disk.img <size>
Boot up nixos using the hard drive and iso
qemu-system-x86_64 -m 1024 -hda nixos.img -boot d -cdrom nixos-minimal-22.11.1895.ab1254087f4-x86_64-linux.iso
Then, I follow the steps in the manual for partitioning and mounting the drive (UEFI), and then generating a config, adding the grub settings and such. However, when I try to run nixos-install
I get the following errors.
warning: error: unable to download 'https://cache.nixos.org/nix-cache-info': Couldn't resolve host name (6); retrying in 335 ms
I’ve also attempted curl https://google.com
and it looks like I get a dns error. Not sure how to enable it…I was also able to install the first time I did this, but when I wiped the drive and attempted to start over, I started running into this issue.