Install NixOS on UEFI hardware and MBR partition table?

Trying NixOS for the first time after using it in a VM for a while.

I’m on a uefi machine, but I’m trying to keep my home partition from a previous OS which was on an MBR partition scheme.

Using the graphical installer, I would get there error that the bootloader could not be installed, and when following instructions to install via command line, I would get the error that my efi partition isn’t on a GPT partition label.

I found some discussion over installing NixOS os UEFI + MBR combo, but none seemed to work.

Is such an installation possible, and if so how can it be done? i.e. What partitions and formats do I need, are there any configuation.nix options I must set?

I used these tutorials
https://nixos.wiki/wiki/NixOS_Installation_Guide
https://nlewo.github.io/nixos-manual-sphinx/installation/installing.xml.html
And found these posts which didn’t provide much information
https://www.reddit.com/r/linuxquestions/comments/gt7172/nixos_with_mbr_and_uefi_is_it_possible/

Any help would be much appreciated!

Yes, all four combinations of GPT vs MBR and EFI vs BIOS are possible, though some are more tortured than others and would require the firmware to play along.

Look into Partitioning - ArchWiki.

Also avoid nixos.wiki which is dead, I suggest using the official manual at https://nixos.org/manual/nixos/unstable/#sec-installation-manual or if you want the wiki use wiki.nixos.org (which I also suggest you edit your link to refer to).

Sorry for not returning for a while. After much documentation reading and headaches, I couldn’t get it to work, and just switched to GPT. Worked fine.