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

Support Hetzner and ISO attach API #24

Open
alexanderkjeldaas opened this issue Apr 19, 2018 · 1 comment
Open

Support Hetzner and ISO attach API #24

alexanderkjeldaas opened this issue Apr 19, 2018 · 1 comment

Comments

@alexanderkjeldaas
Copy link

It would be nice to support an optional argument to the script, an API key.

With the API key, it should be possible to attach an ISO with NixOS to the server and at least use the store on that ISO as cache, or install whatever version is on that ISO.

For Hetzner Cloud, this API https://docs.hetzner.cloud/#resources-server-actions-post-13 is relevant.

Attaching an ISO like that would make it possible to read and write directly over SSD and local network, potentially making the installation very fast.

@elitak
Copy link
Owner

elitak commented Apr 20, 2018

Do you mean having nixos-infect use the ISO as a binary cache? If so, that'd be doable just by running whatever command or two mounts the ISO as a preamble to calling nixos-infect. nixos-infect itself would need a way to pass that binary cache path on to the invocation of nix-env it uses. Trying to get the bootstrapping working off of the ISO may be a lot more involved, so I would advise against it, especially for the sake of saving < 100MB of downloading.

Try tweaking the script to get it to work for you. If you get either working with minimal modification, I will put in changes to allow binary caches to be passed into the appropriate invocations.

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

No branches or pull requests

2 participants