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