Cache nix
This commit is contained in:
parent
d9347fcc22
commit
6db71f77c3
2 changed files with 18 additions and 2 deletions
|
|
@ -1,6 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Sudo is required by this installer
|
||||
apt-get update -qq
|
||||
apt-get install -y sudo
|
||||
|
||||
if nix_path="$(type -p nix)" ; then
|
||||
echo "Aborting: Nix is already installed at ${nix_path}"
|
||||
exit
|
||||
|
|
@ -79,8 +83,6 @@ 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 ="
|
||||
apt-get update -qq
|
||||
apt-get install -y sudo
|
||||
sudo mkdir -p /etc/nix
|
||||
sudo chmod 0755 /etc/nix
|
||||
sudo cp "$workdir/nix.conf" /etc/nix/nix.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue