mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
activation-checks: improve NIX_PATH warnings
This commit is contained in:
parent
c24f744cd3
commit
a7fe548f63
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ let
|
|||
darwinConfig=$(NIX_PATH=${concatStringsSep ":" config.nix.nixPath} nix-instantiate --eval -E '<darwin-config>') || true
|
||||
if ! test -e "$darwinConfig"; then
|
||||
echo "[1;31merror: Changed <darwin-config> but target does not exist, aborting activation[0m" >&2
|
||||
echo "Move you configuration.nix or set NIX_PATH:" >&2
|
||||
echo "Move you configuration.nix or set nix.nixPath:" >&2
|
||||
echo >&2
|
||||
echo " nix.nixPath = [ \"darwin-config=$(nix-instantiate --eval -E '<darwin-config>')\" ];" >&2
|
||||
echo >&2
|
||||
|
@ -48,7 +48,7 @@ let
|
|||
darwinPath=$(NIX_PATH=${concatStringsSep ":" config.nix.nixPath} nix-instantiate --eval -E '<darwin>') || true
|
||||
if ! test -e "$darwinPath"; then
|
||||
echo "[1;31merror: Changed <darwin> but target does not exist, aborting activation[0m" >&2
|
||||
echo "Add the darwin repo as a channel or set NIX_PATH:" >&2
|
||||
echo "Add the darwin repo as a channel or set nix.nixPath:" >&2
|
||||
echo "$ sudo nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin" >&2
|
||||
echo "$ sudo nix-channel --update" >&2
|
||||
echo >&2
|
||||
|
@ -62,7 +62,7 @@ let
|
|||
nixpkgsPath=$(NIX_PATH=${concatStringsSep ":" config.nix.nixPath} nix-instantiate --eval -E '<nixpkgs>') || true
|
||||
if ! test -e "$nixpkgsPath"; then
|
||||
echo "[1;31merror: Changed <nixpkgs> but target does not exist, aborting activation[0m" >&2
|
||||
echo "Add a nixpkgs channel or set NIX_PATH:" >&2
|
||||
echo "Add a nixpkgs channel or set nix.nixPath:" >&2
|
||||
echo "$ sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs" >&2
|
||||
echo "$ sudo nix-channel --update" >&2
|
||||
echo >&2
|
||||
|
|
Loading…
Reference in a new issue