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.
This commit is contained in:
		
							parent
							
								
									eeffdb74dc
								
							
						
					
					
						commit
						ada3e3fa15
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -40,6 +40,7 @@ Settings::Settings() | ||||||
|     useSQLiteWAL = true; |     useSQLiteWAL = true; | ||||||
|     syncBeforeRegistering = false; |     syncBeforeRegistering = false; | ||||||
|     useSubstitutes = true; |     useSubstitutes = true; | ||||||
|  |     buildUsersGroup = getuid() == 0 ? "nixbld" : ""; | ||||||
|     useChroot = false; |     useChroot = false; | ||||||
|     useSshSubstituter = false; |     useSshSubstituter = false; | ||||||
|     impersonateLinux26 = false; |     impersonateLinux26 = false; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue