fix: provision nixbld users for root nix install
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 18s
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 18s
This commit is contained in:
@@ -103,6 +103,16 @@ jobs:
|
||||
mkdir -p /nix
|
||||
chown root:root /nix
|
||||
chmod 0755 /nix
|
||||
|
||||
if ! getent group nixbld >/dev/null 2>&1; then
|
||||
groupadd --system nixbld
|
||||
fi
|
||||
|
||||
for i in $(seq 1 10); do
|
||||
if ! id "nixbld$i" >/dev/null 2>&1; then
|
||||
useradd --system --gid nixbld --no-create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
|
||||
|
||||
@@ -104,6 +104,16 @@ jobs:
|
||||
mkdir -p /nix
|
||||
chown root:root /nix
|
||||
chmod 0755 /nix
|
||||
|
||||
if ! getent group nixbld >/dev/null 2>&1; then
|
||||
groupadd --system nixbld
|
||||
fi
|
||||
|
||||
for i in $(seq 1 10); do
|
||||
if ! id "nixbld$i" >/dev/null 2>&1; then
|
||||
useradd --system --gid nixbld --no-create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user