Compare commits

..

2 Commits

Author SHA1 Message Date
0f171a668b 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
2026-02-28 16:52:35 +00:00
7759c47fea fix: provision nixbld users for root nix install
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 18s
2026-02-28 16:49:45 +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