From 51fd6184dedaa3eb0b549bcf94d998256df68933 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Tue, 12 Jan 2021 18:05:57 +0100 Subject: [PATCH 1/3] follow redirects --- scripts/linode-bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/linode-bootstrap.sh b/scripts/linode-bootstrap.sh index cd77ebb..8d022be 100755 --- a/scripts/linode-bootstrap.sh +++ b/scripts/linode-bootstrap.sh @@ -82,7 +82,7 @@ label_disks() { ################################################################################ # Download the NixOS ISO and write it to the installer disk. write_installer_to_disk() { - curl -k "$NIXOS_URL" \ + curl -L -k "$NIXOS_URL" \ | dd bs=1M of=/dev/disk/by-label/installer sync From dcf51e5fa71fe81d11091dd93bbdb9e7864a2bcf Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Tue, 12 Jan 2021 18:31:45 +0100 Subject: [PATCH 2/3] do not use temp addresses --- scripts/linode-bootstrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/linode-bootstrap.sh b/scripts/linode-bootstrap.sh index 8d022be..66d90a0 100755 --- a/scripts/linode-bootstrap.sh +++ b/scripts/linode-bootstrap.sh @@ -139,6 +139,7 @@ enable_ssh() { services.openssh.enable = true; services.openssh.permitRootLogin = "yes"; services.openssh.openFirewall = true; + networking.interfaces.enp0s5.preferTempAddress = false; } EOF } From 8eab05eb24ee0186b8a0eff49695f2d846aa75e3 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Tue, 12 Jan 2021 18:39:28 +0100 Subject: [PATCH 3/3] new nixos option 'tempAddress' --- scripts/linode-bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/linode-bootstrap.sh b/scripts/linode-bootstrap.sh index 66d90a0..fc2d9f0 100755 --- a/scripts/linode-bootstrap.sh +++ b/scripts/linode-bootstrap.sh @@ -139,7 +139,7 @@ enable_ssh() { services.openssh.enable = true; services.openssh.permitRootLogin = "yes"; services.openssh.openFirewall = true; - networking.interfaces.enp0s5.preferTempAddress = false; + networking.interfaces.enp0s5.tempAddress = "disabled"; } EOF }