Skip to content

Instantly share code, notes, and snippets.

@littledivy
Created September 19, 2025 17:42
Show Gist options
  • Save littledivy/d7212b6a84b17ee57781977ea5e247df to your computer and use it in GitHub Desktop.
Save littledivy/d7212b6a84b17ee57781977ea5e247df to your computer and use it in GitHub Desktop.
sh <(curl -L https://nixos.org/nix/install)
mkdir -p ~/.config/nix 
cat <<EOF > ~/.config/nix/nix.conf
experimental-features = nix-command flakes
EOF
cd ~/.config/nix 
nix flake init -t nix-darwin

nix run nix-darwin -- switch --flake .

# or

nix flake update
darwin-rebuild switch --flake .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment