From 5a79244a7e14a96f93584397713e20a253d5e86c Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 10 Oct 2017 22:21:30 +0200 Subject: [PATCH] readme: add nix-channel instructions to the manual install section --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 025a42c8..83f326d9 100644 --- a/README.md +++ b/README.md @@ -59,12 +59,17 @@ Check out [modules/examples](https://github.com/LnL7/nix-darwin/tree/master/modu ```bash sudo ln -s private/var/run /run -git clone git@github.com:LnL7/nix-darwin.git ~/.nix-defexpr/darwin -cp ~/.nix-defexpr/darwin/modules/examples/simple.nix ~/.nixpkgs/darwin-configuration.nix +# Configure the channel +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 +cp ~/.nix-defexpr/darwin/modules/examples/simple.nix ~/.nixpkgs/darwin-configuration.nix + # you can also use this to rebootstrap nix-darwin in case # darwin-rebuild is to old to activate the system. $(nix-build '' -A system --no-out-link)/sw/bin/darwin-rebuild build