installer: move channel creation to README

This commit is contained in:
Michael Hoang 2024-11-17 02:51:42 +11:00
parent 9a1bea70d5
commit 65ea368ebb
3 changed files with 13 additions and 23 deletions

View file

@ -47,20 +47,6 @@ stdenv.mkDerivation {
echo >&2 "Installing nix-darwin..."
echo >&2
i=y
darwinPath=$(NIX_PATH=$HOME/.nix-defexpr/channels nix-instantiate --eval -E '<darwin>' 2> /dev/null) || true
if ! test -e "$darwinPath"; then
if test -t 0; then
read -p "Would you like to manage <darwin> with nix-channel? [y/N] " i
fi
case "$i" in
y|Y)
nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
nix-channel --update
;;
esac
fi
export NIX_PATH=${nixPath}
system=$(nix-build '<darwin>' -A system --no-out-link --show-trace)