aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/init.sh')
-rwxr-xr-xtests/functional/init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/init.sh b/tests/functional/init.sh
index f5a04f62e..663d04721 100755
--- a/tests/functional/init.sh
+++ b/tests/functional/init.sh
@@ -28,7 +28,7 @@ substituters =
flake-registry = $TEST_ROOT/registry.json
show-trace = true
include nix.conf.extra
-trusted-users = $(whoami)
+trusted-users = $(whoami || id -u)
EOF
cat > "$NIX_CONF_DIR"/nix.conf.extra <<EOF