Open terminal and run this anywhere
git init
It will detect that we don't have xcode developer tools, after that follow the daemon gui installer
Settings > Scroll & Zoom > (Disable) Natural scrolling
Settings > Keyboard > (Set both to max) Key repeat rate and Delay until repeatSettings > Desktop & Dock > (Enable) Automatically hide and show the dock Reset dock content
defaults write com.apple.dock persistent-apps -array && defaults write com.apple.dock persistent-others -array && defaults write com.apple.dock show-recents -bool false && killall Dock
First go to nix-darwin repo
Install nix using lix installer just like in the prerequisites
Somehow the first install always fail, and it will succeed on the second one
Next follow the getting started section using flakes.
Follow them all manually until we have darwin-rebuild cli installed.
After that go to bryanprimus/nixos-config, copy the flake.nix content manually and paste to our newly setup nix-darwin config locally.
Install rosetta next
/usr/sbin/softwareupdate --install-rosetta --agree-to-licenseLastly run
sudo darwin-rebuild switch
We need to set ssh keys into our local, or you can generate from the start if you want to by following this guide
vi ~/.ssh/id_ed25519.pub
# paste public keys hereand then
vi ~/.ssh/id_ed25519
# paste correctly formatted private key hereAllow permission to that private key
chmod 600 ~/.ssh/id_ed25519
Check the connection
ssh -T git@github.com
It should say something like
Hi <your-username>! You've successfully authenticated...