Skip to content

Conversation

angerman
Copy link

I also have the following user-data.yaml

#cloud-config
write_files:
  - path: /root/install-nix.sh
    content: |
        #!/bin/bash
        set -x
        set -e
        export USER=$(whoami)
        export HOME=/root
        wget http://zw3rk-pub-bucket.s3.amazonaws.com/nixos-system-x86_64-linux.tar.xz
        tar -xf nixos-system-x86_64-linux.tar.xz
        cp /root/.ssh/authorized_keys /ssh_pubkey
        ./kexec_nixos

runcmd:
  - bash -l /root/install-nix.sh

though I'd prefer not to have to host the .tar.xz at 400mb myself :-)

@angerman
Copy link
Author

Apart from having to enter the machine, and running justdoit; this is almost completely unsupervised. Tested on Hetzner Cloud cx11 instanes.

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.

1 participant