Compare commits
2 Commits
0f171a668b
...
f8379e6d08
| Author | SHA1 | Date | |
|---|---|---|---|
| f8379e6d08 | |||
| 8d809355eb |
@@ -110,8 +110,9 @@ jobs:
|
||||
|
||||
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"
|
||||
useradd --system --create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
||||
fi
|
||||
usermod -a -G nixbld "nixbld$i"
|
||||
done
|
||||
fi
|
||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
|
||||
@@ -105,16 +105,17 @@ jobs:
|
||||
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
|
||||
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 --create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
||||
fi
|
||||
usermod -a -G nixbld "nixbld$i"
|
||||
done
|
||||
fi
|
||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user