Skip to content

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

Update

In order to update nixpkgs to a newer version, run niv update nixpkgs -b <version-branch>.

  • Check https://github.com/NixOS/nixpkgs for the required release, i.e. nixos-25.11
  • Execute niv update nixpkgs -b nixos-25.11 to update packages.
  • Execute nix-env -if default.nix to apply updates to nix.

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors