Trouble installing NixOS on scaleway

Hi all,

I’ve ran into a rather difficult problem to solve when trying to install NixOS on scaleway’s elastic metal instances. Initially I tried nixos-infect, but that failed due to me hitting this issue:

Scaleway: An error occurred in stage 1 of the boot process. · Issue #236 · elitak/nixos-infect

So I did look at nixos-anywhere, but my server configuration doesn’t use flakes and I have no idea how to properly migrate it over. So I instead tried the manual route. I first installed nix in Scaleway’s rescue mode as you would install it on any other system. Then I installed nixos.nixos-install-tools. Then I partitioned the disk as normal and did the install.

But when I rebooted, the server just completely failed to boot. The bootloader never even came up; iKVM just said “no signal” and then it jumped straight to iPXE.

At this point I’m completely baffled. I don’t know if there’s something I should put into configuration.nix or if I did everything correctly. (I’m trying to just get a base install going to start; I’m hoping that once I can figure that out, I can migrate my server over.)

Has anyone else ran into these weird problems before? If so, how did you resolve them? Or did I just screw up somewhere? I’ve checked the firmware settings and the bootloader is installed correctly so I’m quite lost. The boot order is also correct.