Skip to content

Reproducible set of dotfiles and macos configs on OS X 11+

Notifications You must be signed in to change notification settings

a-voronov/dotfiles

Repository files navigation

Dotfiles 👽


Reproducible set of dotfiles and macos configs for zsh terminal on OS X 11+.

OneDark OneLight
dark light

Install

$ # 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

Credits

Uninstall

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 in Disk Utility
  • remove nix from /etc/synthetic.conf
  • might need to restart mac