@cryptotaxi247 / infra / commits / c51a3ad9

macs: mention detsys hosts, add hetzner install guide

Martin Weinelt committed Oct 31, 2024 at 15:18 UTC c51a3ad991609e0b39941f56a7a2328e1e58ffd6
1 file changed +25 -1
macs/README.md
+25 -1
@@ -5,7 +5,12 @@ See [inventory](../docs/inventory.md).
5 ## At Graham's place
6
7 We have mac-mini's are in [Grahams](https://github.com/grahamc) house,
8 -that only [@cole-h](https://github.com/cole-h) can deploy.
8 +that only [@cole-h](https://github.com/cole-h) can deploy:
9 +
10 +- becoming-hyena.foundation.detsys.dev
11 +- cosmic-stud.foundation.detsys.dev
12 +- quality-ram.foundation.detsys.dev
13 +- tight-bug.foundation.detsys.dev
14
15 - These are getting erased and automatically redeployed from the configuration in this directory.
16
@@ -21,6 +26,25 @@ Additional we have five M1 builders at Hetzner online:
26
27 These are maintained by the build infra team.
28
29 +### Install
30 +
31 +- Login to user hetzner with the given password
32 +- Set up SSH keys in the hetzner user
33 +- Elevate with `sudo su`
34 +- Install latest system updates
35 + - softwareupdate --install --all --restart
36 +- Install rosetta2
37 + - softwareupdate --install-rosetta2 --agree-to-license
38 +- Set up passwordless sudo
39 + ```
40 + # visudo /etc/sudoers.d/passwordless
41 + %admin ALL = NOPASSWD: ALL
42 + ````
43 +- Install nix
44 +- Install nix-darwin
45 + - nix run nix-darwin -- switch --flake github:nixos/infra#arm64
46 + - `darwin-rebuild` becomes available after restarting the shell
47 +
48 ### Update
49
50 ```