fix: use sudo to place /etc/nix/nix.conf

This commit is contained in:
Bernardo Meurer 2022-03-29 14:00:26 -07:00
parent 8ae0a9f653
commit d59a4dfc97

View file

@ -45,7 +45,7 @@ else
add_config "build-users-group =" add_config "build-users-group ="
sudo mkdir -p /etc/nix sudo mkdir -p /etc/nix
sudo chmod 0755 /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 fi
if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then