
This machine is intended to host web applications. Initially [Lemmy](https://join-lemmy.org/), but perhaps more down the line. The initial PR only deals with setting up the machine and required infra like DNS, not setting up Lemmy itself which will be a follow-up.
102 lines
2.2 KiB
Markdown
102 lines
2.2 KiB
Markdown
## Hosts
|
|
|
|
### `build01`
|
|
|
|
This machine is perfect for running heavy builds.
|
|
|
|
- Provider: Hetzner
|
|
- CPU: AMD Ryzen 7 1700X Eight-Core Processor
|
|
- RAM: 64GB
|
|
- Drives: 2 x 512 GB SATA SSD
|
|
|
|
### `build02`
|
|
|
|
This machine currently just runs r-ryantm/nixpkgs-update.
|
|
|
|
- Provider: Hetzner
|
|
- CPU: AMD Ryzen 7 3700X Eight-Core Processor
|
|
- RAM: 64GB DDR4 ECC
|
|
- Drives: 2 x 1 TB NVME in RAID 1
|
|
|
|
### `build03`
|
|
|
|
This machine is a replacement for build01.
|
|
|
|
- Provider: Hetzner
|
|
- CPU: AMD Ryzen 5 3600 6-Core Processor
|
|
- RAM: 64GB DDR4 ECC
|
|
- Drives: 2 x 512 GB NVME in RAID 1
|
|
|
|
### `build04`
|
|
|
|
This machine is meant as an aarch64 builder for our hydra instance running on build03.
|
|
|
|
- Provider: Oracle cloud
|
|
- Instance type: [Ampere A1 Compute](https://www.oracle.com/cloud/compute/arm/)
|
|
- CPU: 4 VCPUs on an Ampere Altra (arm64)
|
|
- RAM: 24GB
|
|
- Drives: 200 GB Block
|
|
|
|
### `darwin02`
|
|
|
|
This machine is meant as an aarch64 and x86_64 builder for our CI.
|
|
|
|
- Provider: Scaleway
|
|
- Instance type: [Apple Mac mini M1](https://www.scaleway.com/en/hello-m1/)
|
|
- CPU: Apple M1
|
|
- RAM: 8GB
|
|
- Drives: 256GB SSD
|
|
|
|
### `web01`
|
|
|
|
This machine hosts web services such as Lemmy.
|
|
|
|
- Provider: Hetzner
|
|
- Instance type: CX31
|
|
- CPU: 2 vCPUs on Intel Xeon
|
|
- RAM: 8GB
|
|
- Drives: 80GB SSD
|
|
|
|
## SSH config:
|
|
|
|
You will need to set your admin username if it doesn't match your local username.
|
|
|
|
```
|
|
Host *.nix-community.org
|
|
User <youradminusername>
|
|
```
|
|
|
|
## Deployment commands:
|
|
|
|
```console
|
|
$ ./inv deploy
|
|
```
|
|
|
|
If you want to reboot a machine, use the following command:
|
|
|
|
```console
|
|
$ inv deploy --hosts build02 reboot --hosts build02
|
|
```
|
|
|
|
## Install/Fix system from Hetzner recovery mode
|
|
|
|
1. Copy your ssh key to the recovery system so that the kexec image can re-use it.
|
|
|
|
```console
|
|
yourmachine> ssh-copy-id root@build0X.nix-community.org
|
|
```
|
|
|
|
2. Download and boot into kexec-image:
|
|
|
|
```console
|
|
$ curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-x86_64-linux.tar.gz | tar -xzf- -C /root
|
|
$ /root/kexec/run
|
|
```
|
|
|
|
### Debug VM
|
|
|
|
You can start a vm from the rescue system in order to debug the boot:
|
|
|
|
```console
|
|
$ nix-shell -p qemu_kvm --run 'qemu-kvm -m 10G -hda /dev/sda -hdb /dev/sdb -curses -cpu host -enable-kvm'
|
|
```
|