sudo scutil --set ComputerName platypus
sudo scutil --set LocalHostName platypus
sudo reboot
sudo mv /etc/shells /etc/shells.before-nix-darwin
xcode-select --install
softwareupdate --install-rosetta --agree-to-license
Determinate Systems' installer:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install
sudo echo "homebrew needs sudo session" && \
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
get the config
git clone https://github.com/gotha/dotfiles.git && cd dotfiles
backup config:
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
apply:
nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch --flake .config/nix
this is needed only during installation, later .zshrc will take care of this
export PATH="/run/current-system/sw/bin:$PATH"
look at the README for instructions on installing the dotfiles