Reproducible set of dotfiles and macos configs for zsh terminal on OS X 11+.
OneDark | OneLight |
---|---|
$ # Install Nix (single-user mode)
$ sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
$ echo ". $HOME/.nix-profile/etc/profile.d/nix.sh" >> .zshrc
$ # Pull the dotfiles
$ git clone https://github.com/a-voronov/dotfiles && cd dotfiles
$ # Setup Nix for M1 until it's supported out of the box (single-user mode)
$ mkdir -p ~/.config/nix && cp nix.conf ~/.config/nix/nix.conf
$ # Install Nix profile
$ nix-env -if default.nix
$ echo 'if [ -x "$(command -v zshrc)" ]; then $(zshrc); fi' >> .zshrc
$ # Apply macOS configs (will quit all affected applications, including Terminal)
$ ./macos
-
Nix: This is my very first and initial nix setup copied from Homies following Nix: A Reproducible Setup for Linux and macOS
-
macOS:
macos
config is based on https://mths.be/macos
In case nix needs to be uninstalled or reinstalled for some reason:
rm -rf /nix ~/.nix-profile ~/.nix-defexpr ~/.cache/nix ~/.config/nix
rm ~/.nix-channels
- remove
Nix Store
Volume inDisk Utility
- remove
nix
from/etc/synthetic.conf
- might need to restart mac