Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor adjustments #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Minor adjustments #2

wants to merge 4 commits into from

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