Install dependencies
xcode-select --install
softwareupdate --install-rosetta
Install nix from Determinate Systems
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
First-time installations require you to move the current /etc/nix/nix.conf out of the way.
[ -f /etc/nix/nix.conf ] && sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
Clone this repo
mkdir ~/.ssh
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
git clone https://github.com/liamawhite/os.git
Configure your system!
nix --extra-experimental-features 'nix-command flakes' run .#build-switch
Its probably possible to automate these steps but I've not had time to research how.
- Remove mission control control arrow bindings. Settings -> Keyboard -> shortcuts -> Mission Control -> All ^ shortcuts.
Once bootstrapped, you can just use ./switch
switch