I assume that you've a fresh MacOS (with M series CPU architecture) installed.
First install Nix :
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Then get into a temporary Nix shell, where you'll have access to git, stow and home-manager.
nix-shell -p git stow home-manager vim
Clone this repository :
git clone https://github.com/Archisman-Mridha/dotfiles ~/dotfiles
cd ~/dotfiles
If you're on MacOS, install Homebrew by running :
unalias curl
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
You can customize .config/home-manager/config.nix based on your underlying system. Then execute the following commands :
stow --no-folding .
home-manager switch
nix run nix-darwin -- switch --flake $(pwd)/.config/home-manager
Execute these commands, if you want to cleanup Nix cache :
nix-collect-garbage -d
Go to ./.config/home-manager/ and run :
nix flake update
home-manager switch
-
Nix home-manager tutorial: Declare your entire home directory
-
How I Use Tmux With Neovim For An Awesome Dev Workflow On My Mac
-
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
-
When and how should default.nix, shell.nix and release.nix be used?
- Enable image support in Neovim