main
md 96 lines 2.56 KB
Rendered Raw
1 # Deploying to darwin
2
3 See [inventory](../docs/inventory.md).
4
5 ## Inventory
6
7 ### Obisdian Systems (US Hosting)
8
9 They are hosting five Macs Minis for us in the United States.
10
11 Contact: [@ryantrinkle](https://github.com/ryantrinkle)
12
13 - Mac Mini (M1 2020, 16 GB, 256 GB)
14 - Mac Mini (M1 2020, 16 GB, 256 GB)
15 - Mac Mini (M1 2020, 16 GB, 256 GB)
16 - Mac Mini (M1 2020, 16 GB, 256 GB)
17 - Mac Mini (i3-8100B, 8GB, 128 GB)
18
19 ### Flying Circus (DE Hosting)
20
21 Currently hosting two Mac Minis for us in Germany.
22
23 Contact: [@ctheune](https://github.com/ctheune)
24
25 - Mac Mini (M1 2020, 16 GB, 256 GB)
26 - Mac Mini (M1 2020, 16 GB, 256 GB)
27
28 ### Hetzner
29
30 Additional we rent five M1 (16 GB, 256 GB) builders at Hetzner online:
31
32 - enormous-catfish.mac.nixos.org
33 - growing-jennet.mac.nixos.org
34 - intense-heron.mac.nixos.org
35 - maximum-snail.mac.nixos.org
36 - sweeping-filly.mac.nixos.org
37
38 These are maintained by the build infra team.
39
40 ### Oakhost
41
42 Two M2 Mac Mini with 24 GB RAM and 1 TB disk are sponsored by
43 [Oakhost](https://www.oakhost.com/).
44
45 If you are looking for Mac Hosting in the EU, we can recommend Oakhost. They
46 offer a great admin experience with ad-hoc KVM access in the browser.
47
48 - eager-heisenberg.mac.nixos.org
49 - kind-lumiere.mac.nixos.org
50
51 ### Macstadium
52
53 Two M1 Mac Mini with 8 GB RAM and 256 GB disk and three x86_64 Macs with 32 GB
54 RAM and 500 gb disk are sponsored by [Macstadium](https://macstadium.com/).
55
56 These machines are x86_64-darwin hosts and will be retired once NixOS 26.05
57 reache end of life. We have reached out to Macstadium to get them replaced.
58
59 - mac01.ofborg.org
60 - mac02.ofborg.org
61 - mac03.ofborg.org
62
63 These machine are aarch64-darwin hosts.
64
65 - mac04.ofborg.org
66 - mac05.ofborg.org
67
68 ## Install
69
70 - Login to user hetzner with the given password
71 - Set up SSH keys in the hetzner user
72 - Elevate with `sudo su`
73 - ~~Install latest system updates~~
74 - ~~softwareupdate --install --all --restart~~
75 - Disable auto-updates:
76 - We are currently seeing performance regression in macOS Sequoia.
77 - So to not have the machines auto-upgrade, we use:
78 `sudo softwareupdate --schedule off`
79 - Install rosetta2
80 - softwareupdate --install-rosetta2 --agree-to-license
81 - Set up passwordless sudo
82 ```
83 # visudo /etc/sudoers.d/passwordless
84 %admin ALL = NOPASSWD: ALL
85 ```
86 - Install nix
87 - `sh <(curl -L https://nixos.org/nix/install) --daemon`
88 - Install nix-darwin
89 - `nix --extra-experimental-features 'flakes nix-command' run nix-darwin -- switch --flake github:nixos/infra#arm64`
90 - `darwin-rebuild` becomes available after restarting the shell
91
92 ## Update
93
94 ```
95 darwin-rebuild switch --flake github:nixos/infra#arm64
96 ```