mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-22 08:30:51 +00:00
fix(lib/install-nix): use elevated privileges to create /etc/nix
This commit is contained in:
parent
b2b9fc6cf9
commit
8ae0a9f653
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue