Skip to content

aleksanderbl29/nix-config

Repository files navigation

nix-config

  • Install Nix
curl -L https://nixos.org/nix/install | sh
  • Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Install Rosetta (if on M-series mac)
softwareupdate --install-rosetta --agree-to-license
  • Install git
brew intall git
  • Clone this repo
mkdir ~/src/
cd ~/src/
git clone https://github.com/aleksanderbl29/nix-config nix-mbp
  • Enable experimental nix features
mkdir -p ~/.config/nix
cat <<EOF > ~/.config/nix/nix.conf
experimental-features = nix-command flakes
EOF
  • Nix run
nix run nix-darwin -- switch --flake ~/src/nix-mbp/
  • Rebuild
darwin-rebuild switch --flake ~/src/nix-mbp/
# Also alias nixswitch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published