cloud-init from DO work with scaleway
sr-tream opened this issue · 4 comments
With little modify (remove PROVIDER
):
#cloud-config
write_files:
- path: /etc/nixos/host.nix
permissions: '0644'
content: |
{pkgs, ...}:
{
environment.systemPackages = with pkgs; [ vim ];
}
runcmd:
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIXOS_IMPORT=./host.nix NIX_CHANNEL=nixos-21.05 bash 2>&1 | tee /tmp/infect.log
Source: https://nixos.wiki/wiki/Install_NixOS_on_Scaleway_X86_Virtual_Cloud_Server
Tested and work on instances:
- DEV-1S
- DEV-1M
Also, it must work properly with:
- DEV-1L
- DEV-1XL
Tested with images:
- Ubuntu Bionic - work
- Ubuntu Focal Fossa - doesn't work
- rockylinux 8 - doesn't work
Actually I'm trying the script on a Scaleway STARDUST1-S instance, and it doesn't function properly.
I'm able to build the system, but it doesn't add a /nix/var/nix/profiles/system-X-link
.
I don't know why I have this strange issue...
Edit: I just needed to reboot to be able to do successful rebuilds. So I agree, Scaleway could be added!
I'm trying the script on a Scaleway STARDUST1-S instance, and it doesn't function properly.
What image you use? Cloud init doesn't work with some new images, like rockylinux 8 and Ubuntu Focal Fossa
Yeah it was Ubuntu Focal Fossa.
To get it to work, I did reboot several times, changed configuration.nix & rebuild nixos several times.
I'm not sure how but it finally worked. What image would you recommend? Simply a not-too-new one?
What image would you recommend? Simply a not-too-new one?
With Ubuntu Bionic all work fine for me