mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-23 09:00:52 +00:00
don't insist $USER needs to be set
This commit is contained in:
parent
3755e30bd2
commit
167742cb88
1 changed files with 1 additions and 2 deletions
|
@ -20,7 +20,7 @@ add_config() {
|
|||
# Set jobs to number of cores
|
||||
add_config "max-jobs = auto"
|
||||
# Allow binary caches for user
|
||||
add_config "trusted-users = root $USER"
|
||||
add_config "trusted-users = root ${USER:-}"
|
||||
# Add github access token
|
||||
if [[ $INPUT_GITHUB_ACCESS_TOKEN != "" ]]; then
|
||||
add_config "access-tokens" "github.com=$INPUT_GITHUB_ACCESS_TOKEN"
|
||||
|
@ -86,7 +86,6 @@ fi
|
|||
|
||||
# Set paths
|
||||
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
|
||||
echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> "$GITHUB_PATH"
|
||||
# new path for nix 2.14
|
||||
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"
|
||||
|
||||
|
|
Loading…
Reference in a new issue