From 7465e4edab91e8f794ae07180cd3ba18e03ecaa4 Mon Sep 17 00:00:00 2001 From: Abhishek <50703483+Abhishek-1804@users.noreply.github.com> Date: Fri, 25 Oct 2024 22:08:36 +0530 Subject: [PATCH] Update README.md We need to add the '--extra-experimental-features "nix-command flakes"' flag while initializing the flake.nix and installing darwin-rebuild --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d3aec37f..c3ecc585 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ If you don't have an existing `configuration.nix`, you can run the following com ```bash mkdir -p ~/.config/nix-darwin cd ~/.config/nix-darwin -nix flake init -t nix-darwin +nix flake init -t nix-darwin --extra-experimental-features "nix-command flakes" sed -i '' "s/simple/$(scutil --get LocalHostName)/" flake.nix ``` @@ -131,7 +131,7 @@ Make sure to set `nixpkgs.hostPlatform` in your `configuration.nix` to either `x Instead of using `darwin-installer`, you can just run `darwin-rebuild switch` to install nix-darwin. As `darwin-rebuild` won't be installed in your `PATH` yet, you can use the following command: ```bash -nix run nix-darwin -- switch --flake ~/.config/nix-darwin +nix run --extra-experimental-features "nix-command flakes" nix-darwin -- switch --flake ~/.config/nix-darwin ``` ### Step 3. Using `nix-darwin`