mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
readme: add nix-channel instructions to the manual install section
This commit is contained in:
parent
f0ee1438ec
commit
5a79244a7e
1 changed files with 8 additions and 3 deletions
11
README.md
11
README.md
|
@ -59,12 +59,17 @@ Check out [modules/examples](https://github.com/LnL7/nix-darwin/tree/master/modu
|
||||||
```bash
|
```bash
|
||||||
sudo ln -s private/var/run /run
|
sudo ln -s private/var/run /run
|
||||||
|
|
||||||
git clone git@github.com:LnL7/nix-darwin.git ~/.nix-defexpr/darwin
|
# Configure the channel
|
||||||
cp ~/.nix-defexpr/darwin/modules/examples/simple.nix ~/.nixpkgs/darwin-configuration.nix
|
nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
|
||||||
|
nix-channel --update
|
||||||
|
export NIX_PATH=darwin=darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:$HOME/.nix-defexpr/channels:$NIX_PATH
|
||||||
|
|
||||||
# bootstrap build using default nix.nixPath
|
# Or use a local git repository
|
||||||
|
git clone git@github.com:LnL7/nix-darwin.git ~/.nix-defexpr/darwin
|
||||||
export NIX_PATH=darwin=$HOME/.nix-defexpr/darwin:darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:$NIX_PATH
|
export NIX_PATH=darwin=$HOME/.nix-defexpr/darwin:darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:$NIX_PATH
|
||||||
|
|
||||||
|
cp ~/.nix-defexpr/darwin/modules/examples/simple.nix ~/.nixpkgs/darwin-configuration.nix
|
||||||
|
|
||||||
# you can also use this to rebootstrap nix-darwin in case
|
# you can also use this to rebootstrap nix-darwin in case
|
||||||
# darwin-rebuild is to old to activate the system.
|
# darwin-rebuild is to old to activate the system.
|
||||||
$(nix-build '<darwin>' -A system --no-out-link)/sw/bin/darwin-rebuild build
|
$(nix-build '<darwin>' -A system --no-out-link)/sw/bin/darwin-rebuild build
|
||||||
|
|
Loading…
Reference in a new issue