Update Hetzner instructions (#56)

Resolves #48.
This commit is contained in:
Jasper Woudenberg 2020-07-19 18:44:53 +01:00 committed by GitHub
parent a78d378528
commit a5c9db03b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,12 +85,12 @@ Allow for a few minutes over the usual Ubuntu deployment time for NixOS to downl
## 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.
Hetzner cloud works out of the box. When creating a server provide the following script as "User data" (this has been tested using Ubuntu 20.04 as a base OS).
```
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
#!/bin/sh
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-20.03 bash 2>&1 | tee /tmp/infect.log
```
## Motivation