From 565204bc2148ced7bb2f04370dbc83842d1ee82b Mon Sep 17 00:00:00 2001 From: Chris Stryczynski Date: Sun, 23 Feb 2020 14:10:46 +0000 Subject: [PATCH] Works on hetzner cloud! (#47) * Works on hetzner cloud! * Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index eb6cc1a..09454bb 100644 --- a/README.md +++ b/README.md @@ -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