How do I install NixOS on mac as a Dual boot thing

I want to install NixOS as a dual boot thing on mac but I am not really sure how to can someone help me?

I have done the following:

  • Flashed the NixOS iso onto my USB with balenaEtcher
  • I then used Disk Utility to make some unallocated space
  • I then booted into my USB and then used GParted to create a new ext4 partition

  • I then mounted the files
    mount /dev/disk/by-label/NixOS /mnt
    mount /dev/disk/by-label/EFI /mnt/boot

  • after that I ran
    nixos-generate-config --root /mnt

Now I am trying to boot into to NixOS but it doesn’t show up on the Dual Boot Screen

I miss

nixos-install

in your overview, after you generated and eventually edited the configuration.nix, did you do that?

see: https://nixos.org/manual/nixos/stable/index.html#sec-installation

When the installation is done, then you reboot, hold ‘alt’ key for the disk menu, clicking the left HD icon ‘EFI boot’ should start NixOS, because NixOS starts via EFI boot partition and an ext4 partition does not show in that menu…

Hosted by Flying Circus.