![nix](https://camo.githubusercontent.com/6a5cd49f471e6d1b20bc5b451a9c6d9b88916f8ec04b6f23e80ee7c010943602/68747470733a2f2f736f6369616c6966792e6769742e63692f72656f3130312f7269783130312f696d6167653f6465736372697074696f6e3d3126666f6e743d536f75726365253230436f646525323050726f26666f726b733d31266973737565733d31266c6f676f3d68747470732533412532462532467061626c6f2e746f6f6c732532466e69786f73636f6c6f7266756c2e737667266f776e65723d31267061747465726e3d43697263756974253230426f6172642670756c6c733d31267374617267617a6572733d31267468656d653d4461726b)
# To put `agenix` and friends in `$PATH`
nix develop
cd secrets
agenix -i key -e sub/dir/secret_file.age
# Initial setup
nix run nixpkgs#nixos-anywhere -- --flake .#${HOSTNAME} --build-on-remote --ssh-port 22 root@${HOSTNAME} --no-reboott
# Deploy
deploy .#${HOSTNAME} --skip-checks
# Setup system tools
softwareupdate --install-rosetta --agree-to-license
sudo xcodebuild -license
# Install nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# Apply configuration
git clone https://www.github.com/reo101/rix101 ~/.config/rix101
cd ~/.config/rix101
nix build ".#darwinConfigurations.${HOSTNAME}.system"
./result/sw/bin/darwin-rebuild switch --flake .
# System setup for `yabai` (in system recovery)
csrutil enable --without fs --without debug --without nvram