aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nix/nix.pre-install
blob: 04bca100955d693169bd863b5d4037b6e213cb9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

addgroup -S nix 2>/dev/null
addgroup -S nixbld 2>/dev/null
for n in $(seq 0 3); do
	adduser -S -D -H -h /var/empty -s /sbin/nologin -G nixbld \
		-g "Nix build user $n" nixbld$n 2>/dev/null
done

exit 0