nixos-infect icon indicating copy to clipboard operation
nixos-infect copied to clipboard

cloud-init from DO work with scaleway

Open sr-tream opened this issue 3 years ago • 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

sr-tream avatar Aug 29 '21 14:08 sr-tream

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!

ppom0 avatar Sep 23 '21 09:09 ppom0

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

sr-tream avatar Sep 23 '21 10:09 sr-tream

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?

ppom0 avatar Sep 23 '21 10:09 ppom0

What image would you recommend? Simply a not-too-new one?

With Ubuntu Bionic all work fine for me

sr-tream avatar Sep 23 '21 10:09 sr-tream