1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Update README.md

We need to add the  '--extra-experimental-features "nix-command flakes"' flag while initializing the flake.nix and installing darwin-rebuild
This commit is contained in:
Abhishek 2024-10-25 22:08:36 +05:30 committed by GitHub
parent 7840909b00
commit 7465e4edab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`