From a5c9db03b66a2a628d4d9b0a381c1fb2e05cb774 Mon Sep 17 00:00:00 2001 From: Jasper Woudenberg Date: Sun, 19 Jul 2020 18:44:53 +0100 Subject: [PATCH] Update Hetzner instructions (#56) Resolves #48. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 09454bb..0708d8f 100644 --- a/README.md +++ b/README.md @@ -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