mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-12-22 16:18:29 +03:00
Update README.md
This commit is contained in:
parent
5ef3f953d3
commit
1103bca88a
1 changed files with 11 additions and 10 deletions
21
README.md
21
README.md
|
@ -55,7 +55,7 @@ and most importantly, simply didn't work for me!
|
||||||
|
|
||||||
4) run the script with:
|
4) run the script with:
|
||||||
```
|
```
|
||||||
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-23.05 bash -x
|
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-24.05 bash -x
|
||||||
```
|
```
|
||||||
|
|
||||||
*NB*: This script wipes out the targeted host's root filesystem when it runs to completion.
|
*NB*: This script wipes out the targeted host's root filesystem when it runs to completion.
|
||||||
|
@ -72,7 +72,7 @@ and supply to it the following example yaml stanzas:
|
||||||
#cloud-config
|
#cloud-config
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=digitalocean NIX_CHANNEL=nixos-23.05 bash 2>&1 | tee /tmp/infect.log
|
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=digitalocean NIX_CHANNEL=nixos-24.05 bash 2>&1 | tee /tmp/infect.log
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Potential tweaks:
|
#### Potential tweaks:
|
||||||
|
@ -90,7 +90,7 @@ write_files:
|
||||||
environment.systemPackages = with pkgs; [ vim ];
|
environment.systemPackages = with pkgs; [ vim ];
|
||||||
}
|
}
|
||||||
runcmd:
|
runcmd:
|
||||||
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=digitalocean NIXOS_IMPORT=./host.nix NIX_CHANNEL=nixos-23.05 bash 2>&1 | tee /tmp/infect.log
|
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=digitalocean NIXOS_IMPORT=./host.nix NIX_CHANNEL=nixos-24.05 bash 2>&1 | tee /tmp/infect.log
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -122,6 +122,7 @@ runcmd:
|
||||||
|Ubuntu |22.04 x64 |**success**|2023-06-05|
|
|Ubuntu |22.04 x64 |**success**|2023-06-05|
|
||||||
|Ubuntu |22.10 x64 | _failure_ |2023-06-05|
|
|Ubuntu |22.10 x64 | _failure_ |2023-06-05|
|
||||||
|Ubuntu |23.10 x64 | _failure_ |2023-11-16|
|
|Ubuntu |23.10 x64 | _failure_ |2023-11-16|
|
||||||
|
|Ubuntu |24.04 x64 |**success**|2023-11-16|
|
||||||
|
|
||||||
### Vultr
|
### Vultr
|
||||||
To set up a NixOS Vultr server, instantiate an Ubuntu box with the following "Cloud-Init User-Data":
|
To set up a NixOS Vultr server, instantiate an Ubuntu box with the following "Cloud-Init User-Data":
|
||||||
|
@ -129,7 +130,7 @@ To set up a NixOS Vultr server, instantiate an Ubuntu box with the following "Cl
|
||||||
```bash
|
```bash
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-23.05 bash
|
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-24.05 bash
|
||||||
```
|
```
|
||||||
|
|
||||||
Allow for a few minutes over the usual Ubuntu deployment time for NixOS to download & install itself.
|
Allow for a few minutes over the usual Ubuntu deployment time for NixOS to download & install itself.
|
||||||
|
@ -149,7 +150,7 @@ When creating a server provide the following yaml as "Cloud config":
|
||||||
#cloud-config
|
#cloud-config
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=hetznercloud NIX_CHANNEL=nixos-23.05 bash 2>&1 | tee /tmp/infect.log
|
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=hetznercloud NIX_CHANNEL=nixos-24.05 bash 2>&1 | tee /tmp/infect.log
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Tested on
|
#### Tested on
|
||||||
|
@ -225,7 +226,7 @@ Tested for both VM.Standard.E2.1.Micro (x86) and VM.Standard.A1.Flex (AArch64) i
|
||||||
[1] The Oracle 7.9 layout has 200Mb for /boot 8G for swap
|
[1] The Oracle 7.9 layout has 200Mb for /boot 8G for swap
|
||||||
PR#100 Adopted 8G Swap device
|
PR#100 Adopted 8G Swap device
|
||||||
[2] OL9.1 had 2GB /boot, 100MB /boot/efi (nixos used as /boot) and swapfile
|
[2] OL9.1 had 2GB /boot, 100MB /boot/efi (nixos used as /boot) and swapfile
|
||||||
[3] Both 22.11 and 23.05 failed to boot, but installing 22.05 and then upgrading
|
[3] Both 22.11 and 24.05 failed to boot, but installing 22.05 and then upgrading
|
||||||
worked out as intended.
|
worked out as intended.
|
||||||
|
|
||||||
### Aliyun ECS
|
### Aliyun ECS
|
||||||
|
@ -280,7 +281,7 @@ build time or using `ssh-copy-id` before running nixos-infect
|
||||||
```
|
```
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-23.05 bash 2>&1 | tee /tmp/infect.log
|
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-24.05 bash 2>&1 | tee /tmp/infect.log
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Tested on
|
#### Tested on
|
||||||
|
@ -308,7 +309,7 @@ Tested on vServer. The network configuration seems to be important so the same t
|
||||||
### ServArica
|
### ServArica
|
||||||
Requires the same static network settings that Digital Ocean does.
|
Requires the same static network settings that Digital Ocean does.
|
||||||
|
|
||||||
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=servarica NIX_CHANNEL=nixos-23.05 bash
|
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=servarica NIX_CHANNEL=nixos-24.05 bash
|
||||||
|
|
||||||
#### Tested on
|
#### Tested on
|
||||||
|Distribution| Name | Status | test date|
|
|Distribution| Name | Status | test date|
|
||||||
|
@ -339,7 +340,7 @@ write_files:
|
||||||
environment.systemPackages = with pkgs; [ tmux ];
|
environment.systemPackages = with pkgs; [ tmux ];
|
||||||
}
|
}
|
||||||
runcmd:
|
runcmd:
|
||||||
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIXOS_IMPORT=./host.nix NIX_CHANNEL=nixos-23.05 bash 2>&1 | tee /tmp/infect.log
|
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIXOS_IMPORT=./host.nix NIX_CHANNEL=nixos-24.05 bash 2>&1 | tee /tmp/infect.log
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Tested on
|
#### Tested on
|
||||||
|
@ -355,7 +356,7 @@ and have a copy of the private key on your local box.
|
||||||
|
|
||||||
On RackNerd's Ubuntu 20.04, there's no `curl` by default, so `wget -O-` needs to be used instead:
|
On RackNerd's Ubuntu 20.04, there's no `curl` by default, so `wget -O-` needs to be used instead:
|
||||||
```command
|
```command
|
||||||
# wget -O- https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-23.05 bash -x
|
# wget -O- https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-24.05 bash -x
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Tested on
|
#### Tested on
|
||||||
|
|
Loading…
Reference in a new issue