We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3755e30 commit 167742cCopy full SHA for 167742c
install-nix.sh
@@ -20,7 +20,7 @@ add_config() {
20
# Set jobs to number of cores
21
add_config "max-jobs = auto"
22
# Allow binary caches for user
23
-add_config "trusted-users = root $USER"
+add_config "trusted-users = root ${USER:-}"
24
# Add github access token
25
if [[ $INPUT_GITHUB_ACCESS_TOKEN != "" ]]; then
26
add_config "access-tokens" "github.com=$INPUT_GITHUB_ACCESS_TOKEN"
@@ -86,7 +86,6 @@ fi
86
87
# Set paths
88
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
89
-echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> "$GITHUB_PATH"
90
# new path for nix 2.14
91
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"
92
0 commit comments