macs: update instruction
Jörg Thalheim committed
Nov 3, 2024 at 18:53 UTC
b0af86dd82220f75c1ea9bc73988cdd59d7806a9
1 file changed
+8
-4
macs/README.md
+8
-4
@@ -31,8 +31,11 @@ These are maintained by the build infra team.
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
34
+- ~~Install latest system updates~~
35
+ - ~~softwareupdate --install --all --restart~~
36
+- Disable auto-updates:
37
+ - We are currently seeing performance regression in macOS Sequoia.
38
+ - So to not have the machines auto-upgrade, we use: `sudo softwareupdate --schedule off`
39
- Install rosetta2
40
- softwareupdate --install-rosetta2 --agree-to-license
41
- Set up passwordless sudo
@@ -41,13 +44,14 @@ These are maintained by the build infra team.
44
%admin ALL = NOPASSWD: ALL
45
````
46
- Install nix
47
+ - `sh <(curl -L https://nixos.org/nix/install) --daemon`
48
- Install nix-darwin
45
- - nix run nix-darwin -- switch --flake github:nixos/infra#arm64
49
+ - `nix --extra-experimental-features 'flakes nix-command' run nix-darwin -- switch --flake github:nixos/infra#arm64`
50
- `darwin-rebuild` becomes available after restarting the shell
51
52
### Update
53
54
```
51
-darwin-rebuild switch --flake github::nixos/infra#arm64
55
+darwin-rebuild switch --flake github:nixos/infra#arm64
56
```
57