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
1 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,9 @@ On Vultr:
On OVH Virtual Private Servers (experimental):
- Debian
On Hetzner cloud:
- Ubuntu 18.04
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.
@ -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.
## 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 for this script: nixos-assimilate should supplant this script