Works on hetzner cloud! (#47)

* Works on hetzner cloud!

* Update README.md
This commit is contained in:
Chris Stryczynski 2020-02-23 14:10:46 +00:00 committed by GitHub
parent 613fa20813
commit 565204bc21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,9 @@ On Vultr:
On OVH Virtual Private Servers (experimental): On OVH Virtual Private Servers (experimental):
- Debian - Debian
On Hetzner cloud:
- Ubuntu 18.04
YMMV with any other hoster + image combination. YMMV with any other hoster + image combination.
If you have a OpenVZ based virtualization solution then this, or any other OS takeover script will not work, this is fundamental to how OpenVZ works. If you have a OpenVZ based virtualization solution then this, or any other OS takeover script will not work, this is fundamental to how OpenVZ works.
@ -80,6 +83,16 @@ curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect |
Allow for a few minutes over the usual Ubuntu deployment time for NixOS to download & install itself. Allow for a few minutes over the usual Ubuntu deployment time for NixOS to download & install itself.
## Hetzner cloud
We need to replace our nameserver to point to the dedicated Hetzner DNS as opposed to `127.0.0.1:53` which is specific to Ubuntu.
```
sed -i "/nameserver/d" /etc/resolv.conf
echo "nameserver 213.133.98.98" >> /etc/resolv.conf
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=digitalocean NIXOS_IMPORT=./host.nix NIX_CHANNEL=nixos-19.09 bash 2>&1 | tee /tmp/infect.log
```
## Motivation ## Motivation
Motivation for this script: nixos-assimilate should supplant this script Motivation for this script: nixos-assimilate should supplant this script