Merge pull request #125 from lovesegfault/master

fix(lib/install-nix): use elevated privileges to create /etc/nix
This commit is contained in:
Domen Kožar 2022-03-23 08:58:00 +01:00 committed by GitHub
commit c5300121f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,8 @@ else
# "fix" the following error when running nix* # "fix" the following error when running nix*
# error: the group 'nixbld' specified in 'build-users-group' does not exist # error: the group 'nixbld' specified in 'build-users-group' does not exist
add_config "build-users-group =" add_config "build-users-group ="
mkdir -m 0755 /etc/nix sudo mkdir -p /etc/nix
sudo chmod 0755 /etc/nix
cp $workdir/nix.conf /etc/nix/nix.conf cp $workdir/nix.conf /etc/nix/nix.conf
fi fi