mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
add bootstrap example to readme
This commit is contained in:
parent
302524fba1
commit
584e64da1a
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
# nix-darwin
|
# nix-darwin
|
||||||
|
|
||||||
Nix modules for darwin.
|
Nix modules for darwin, `/etc/nixos/configuration.nix` for macOS.
|
||||||
|
This will creates and manages a system profile in `/run/current-system`, just like nixos.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ darwin-rebuild switch
|
$ darwin-rebuild switch
|
||||||
|
@ -37,6 +38,12 @@ result/sw/bin/darwin-rebuild build
|
||||||
result/sw/bin/darwin-rebuild switch
|
result/sw/bin/darwin-rebuild switch
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you already configured your `NIX_PATH` you can just (re)bootstrap nix-darwin
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$(nix-build '<darwin>' -A system --no-out-link)/sw/bin/darwin-rebuild switch
|
||||||
|
```
|
||||||
|
|
||||||
## Example configuration
|
## Example configuration
|
||||||
|
|
||||||
Checkout [modules/examples](https://github.com/LnL7/nix-darwin/tree/master/modules/examples) for some example configurations.
|
Checkout [modules/examples](https://github.com/LnL7/nix-darwin/tree/master/modules/examples) for some example configurations.
|
||||||
|
|
Loading…
Add table
Reference in a new issue