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:
parent
7840909b00
commit
7465e4edab
1 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue