fix: set NIX_CONFIG build-users-group empty to skip nixbld group check in Docker
This commit is contained in:
@@ -64,6 +64,8 @@ if [[ -n "${NIX_PACKAGES_PREBAKE:-}" ]]; then
|
|||||||
# Pre-create /nix as root so the installer doesn't try 'sudo mkdir'
|
# Pre-create /nix as root so the installer doesn't try 'sudo mkdir'
|
||||||
# (sudo isn't installed in this Docker container).
|
# (sudo isn't installed in this Docker container).
|
||||||
mkdir -m 0755 -p /nix
|
mkdir -m 0755 -p /nix
|
||||||
|
# Disable build-users-group so nix doesn't complain about missing nixbld group.
|
||||||
|
export NIX_CONFIG="build-users-group = "
|
||||||
curl -fsSL https://nixos.org/nix/install | \
|
curl -fsSL https://nixos.org/nix/install | \
|
||||||
NIX_INSTALLER_TRUST_INSTALLER=1 sh -s -- --no-daemon --no-channel-add
|
NIX_INSTALLER_TRUST_INSTALLER=1 sh -s -- --no-daemon --no-channel-add
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|||||||
Reference in New Issue
Block a user