Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.36 KB

README-osx.md

File metadata and controls

74 lines (48 loc) · 1.36 KB

OSX

Prepare

set computer name if needed

sudo scutil --set ComputerName platypus
sudo scutil --set LocalHostName platypus
sudo reboot

remove old config files (if needed)

sudo mv /etc/shells /etc/shells.before-nix-darwin

install tools

xcode-select --install
softwareupdate --install-rosetta --agree-to-license

install Nix:

Determinate Systems' installer:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
  sh -s -- install

install homebrew:

sudo echo "homebrew needs sudo session" && \
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

apply nix config

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

add nix binaries to path

this is needed only during installation, later .zshrc will take care of this

export PATH="/run/current-system/sw/bin:$PATH"

install dotfiles as per usual

look at the README for instructions on installing the dotfiles