diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-02T10·46+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-02T10·46+0200 |
commit | ada3e3fa15bc14aebb2bafd1240c15cf1fd99351 (patch) | |
tree | d09fa7c6927cf84b3619326c3a9355978f792dfe /src | |
parent | eeffdb74dcdbd64bcdc44cff4e587b59c4f807b5 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/globals.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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; |