Skip to content

Commit

Permalink
Use Environment Files to set env and PATH (see #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Nov 16, 2020
1 parent 1481852 commit 6096ced
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nix-quick-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ -z "${NIX_SSL_CERT_FILE:-}" -a -e "/etc/ssl/cert.pem" ]; then
fi

# Set env
echo "::add-path::$HOME/.nix-profile/bin"
echo "::set-env name=NIX_PROFILES::/nix/var/nix/profiles/default $HOME/.nix-profile"
echo "::set-env name=NIX_USER_PROFILE_DIR::/nix/var/nix/profiles/per-user/$USER"
echo "::set-env name=NIX_SSL_CERT_FILE::$NIX_SSL_CERT_FILE"
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
echo "NIX_PROFILES=/nix/var/nix/profiles/default $HOME/.nix-profile" >> $GITHUB_ENV
echo "NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-user/$USER" >> $GITHUB_ENV
echo "NIX_SSL_CERT_FILE=$NIX_SSL_CERT_FILE" >> $GITHUB_ENV

0 comments on commit 6096ced

Please sign in to comment.