mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-09-11 11:36:40 +03:00
parent
a78d378528
commit
a5c9db03b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user