Install nix:
bash <(curl -L https://nixos.org/nix/install) --daemon # get nix
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh # activate nixSetup env:
DOTFILES_LOC=~/projects/dotfiles
git clone git@github.com:ArthurBook/dotfiles.git ${DOTFILES_LOC}
cd ${DOTFILES_LOC}
# Single command setup (includes both system and home configuration)
sudo nix --extra-experimental-features "nix-command flakes" run nix-darwin/nix-darwin-25.05#darwin-rebuild -- switch --flake .Setup home manager:
nix run github:nix-community/home-manager/release-25.05 -- switch --flake .#macosAfter initial setup, use this single command to rebuild everything:
sudo nix run nix-darwin#darwin-rebuild -- switch --flake .Note: This configures both system-level (nix-darwin) and user-level (home-manager) settings in one command.