Merge pull request 'fix: provision nixbld users for root nix install' (#42) from stage into master
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 35s

Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
2026-02-28 16:52:35 +00:00
2 changed files with 20 additions and 0 deletions

View File

@@ -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

View File

@@ -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