Skip to content

Add support for Scaleway compute instances#11

Open
srd424 wants to merge 2 commits intoicetan:masterfrom
srd424:scaleway
Open

Add support for Scaleway compute instances#11
srd424 wants to merge 2 commits intoicetan:masterfrom
srd424:scaleway

Conversation

@srd424
Copy link
Copy Markdown

@srd424 srd424 commented Jan 10, 2026

This involves adding some generic UEFI support first.

I've still got an error on push:

nixos-1> Error: Failed to reset failed units
nixos-1>
nixos-1> Caused by:
nixos-1>     Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

But I think this is possibly due to nixiform's existing logic becoming out of step with modern NixOS - it seems to run switch-to-configuration boot and then switch-to-configuration switch, and it's the latter that's breaking. Manual reboot seems to result in a working system anyway - I'm not sure we need the second invocation?

Opening this PR anyway as I've got go work on other things now and I thought this might be useful.

This is a little messy, we need to unmount e.g. /boot/efi in Ubuntu
in order to move /boot out of the way, but we need to remount the ESP
so we can successfully install a bootloader. I've tried to make this as
generic as possible, it checks an EFI variable to see where we booted
from first, and if that doesn't work it will fall back to checking what
is mounted on /boot/efi.
Rather than use hardwired partition numbers for the ESP, use the label
on the assumption that it might be a little less brittle. We could
alternatively come up with a way to duplicate the ESP-finding code
from the previous commit, but this is simplest for now.
@icetan
Copy link
Copy Markdown
Owner

icetan commented Jan 29, 2026

Sorry for late reply!

This looks great, thank you. Will try this out.

I have been looking a bit at the https://github.com/nix-community/nixos-anywhere project and been thinking if it could be integrated into nixiform. The current solution is not very robust.

Just FYI, there is also some vague plans to rewrite nixiform in the future to something more maintainable than a pile of bash :)

@srd424
Copy link
Copy Markdown
Author

srd424 commented Jan 29, 2026

Hah, I'm old enough that piles of bash are kind of my forté - at least, I do better with them than piles of golang or rust :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants