From 8ae0a9f65369eb7f155efb0d69b5bfcdfb21edc3 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Thu, 10 Mar 2022 14:28:37 -0800 Subject: [PATCH] fix(lib/install-nix): use elevated privileges to create /etc/nix --- lib/install-nix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index 8301444..de36af5 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -43,7 +43,8 @@ else # "fix" the following error when running nix* # error: the group 'nixbld' specified in 'build-users-group' does not exist 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 fi