Skip to content

Commit

Permalink
When running as root, use build users by default
Browse files Browse the repository at this point in the history
This removes the need to have a nix.conf, and prevents people from
accidentally running Nix builds as root.
  • Loading branch information
edolstra committed May 2, 2014
1 parent eeffdb7 commit ada3e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstore/globals.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Settings::Settings()
useSQLiteWAL = true;
syncBeforeRegistering = false;
useSubstitutes = true;
buildUsersGroup = getuid() == 0 ? "nixbld" : "";
useChroot = false;
useSshSubstituter = false;
impersonateLinux26 = false;
Expand Down

0 comments on commit ada3e3f

Please sign in to comment.