aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nix/nix.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nix/nix.pre-install')
-rw-r--r--testing/nix/nix.pre-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/nix/nix.pre-install b/testing/nix/nix.pre-install
new file mode 100644
index 0000000000..04bca10095
--- /dev/null
+++ b/testing/nix/nix.pre-install
@@ -0,0 +1,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