File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ add_config() {
20
20
# Set jobs to number of cores
21
21
add_config " max-jobs = auto"
22
22
# Allow binary caches for user
23
- add_config " trusted-users = root $USER "
23
+ add_config " trusted-users = root ${ USER:- } "
24
24
# Add github access token
25
25
if [[ -n " ${INPUT_GITHUB_ACCESS_TOKEN:- } " ]]; then
26
26
add_config " access-tokens = github.com=$INPUT_GITHUB_ACCESS_TOKEN "
88
88
89
89
# Set paths
90
90
echo " /nix/var/nix/profiles/default/bin" >> " $GITHUB_PATH "
91
- echo " /nix/var/nix/profiles/per-user/$USER /profile/bin" >> " $GITHUB_PATH "
91
+ # new path for nix 2.14
92
+ echo " $HOME /.nix-profile/bin" >> " $GITHUB_PATH "
92
93
93
94
if [[ $INPUT_NIX_PATH != " " ]]; then
94
95
echo " NIX_PATH=${INPUT_NIX_PATH} " >> " $GITHUB_ENV "
You can’t perform that action at this time.
0 commit comments