From b95f68250363e6996e0fdafe18cf23c3fc9f873b Mon Sep 17 00:00:00 2001 From: InternetUnexplorer Date: Sat, 7 Jan 2023 20:10:13 -0800 Subject: [PATCH] fix typo in github_access_token option add_config only takes one argument; this was causing Nix to error with "illegal configuration line 'access-tokens' in '/etc/nix/nix.conf'" --- install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-nix.sh b/install-nix.sh index b2d254f..7d89eea 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -23,7 +23,7 @@ add_config "max-jobs = auto" 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" + add_config "access-tokens = github.com=$INPUT_GITHUB_ACCESS_TOKEN" fi # Append extra nix configuration if provided if [[ $INPUT_EXTRA_NIX_CONFIG != "" ]]; then