Provisioning for my MacBook's with Nix.
Generally all secrets are encrypted with agenix, so make sure to copy
the SSH keys from the secrets
stick with these commands:
mkdir -p $HOME/.ssh
cp /Volumes/secrets/ssh/id_* $HOME/.ssh/
chmod u=rw,g=,o= $HOME/.ssh/id_*
It's a good idea to install all apps from the store which have been bought, especially Xcode, otherwise it fails to build macOS applications.
softwareupdate --install-rosetta --agree-to-license
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh <(curl -L https://nixos.org/nix/install)
reboot
nix \
--extra-experimental-features "nix-command flakes" \
build \
github:tboerger/darwin-config\#dagda \
--no-write-lock-file
./result/sw/bin/darwin-rebuild switch \
--flake github:tboerger/darwin-config\#dagda
darwin-rebuild switch \
--flake github:tboerger/darwin-config\#dagda
If you find a security issue please contact [email protected] first.
Fork -> Patch -> Push -> Pull Request
Apache-2.0
Copyright (c) 2021 Thomas Boerger <[email protected]>