From ada3e3fa15bc14aebb2bafd1240c15cf1fd99351 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 2 May 2014 12:46:03 +0200 Subject: When running as root, use build users by default This removes the need to have a nix.conf, and prevents people from accidentally running Nix builds as root. --- src/libstore/globals.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index 86fa56739c5d..c359367bba6d 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -40,6 +40,7 @@ Settings::Settings() useSQLiteWAL = true; syncBeforeRegistering = false; useSubstitutes = true; + buildUsersGroup = getuid() == 0 ? "nixbld" : ""; useChroot = false; useSshSubstituter = false; impersonateLinux26 = false; -- cgit 1.4.1