From d59a4dfc9761e8374d36694430c4ec6832b013fe Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 29 Mar 2022 14:00:26 -0700 Subject: [PATCH] fix: use sudo to place /etc/nix/nix.conf --- lib/install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index de36af5..5ea7b40 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -45,7 +45,7 @@ else add_config "build-users-group =" sudo mkdir -p /etc/nix sudo chmod 0755 /etc/nix - cp $workdir/nix.conf /etc/nix/nix.conf + sudo cp $workdir/nix.conf /etc/nix/nix.conf fi if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then