mirror of
https://github.com/NixOS/nix
synced 2025-07-03 10:21:47 +02:00
* Configuration options for trusted local builds.
This commit is contained in:
parent
89cd0f57b1
commit
8d06842a76
3 changed files with 43 additions and 5 deletions
|
@ -11,16 +11,13 @@ string nixDBPath = "/UNINIT";
|
|||
string nixConfDir = "/UNINIT";
|
||||
|
||||
bool keepFailed = false;
|
||||
|
||||
bool keepGoing = false;
|
||||
|
||||
bool tryFallback = false;
|
||||
|
||||
Verbosity buildVerbosity = lvlInfo;
|
||||
|
||||
unsigned int maxBuildJobs = 1;
|
||||
|
||||
bool readOnlyMode = false;
|
||||
bool buildAllowRoot = true;
|
||||
list<string> buildUsers;
|
||||
|
||||
|
||||
static bool settingsRead = false;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define __GLOBALS_H
|
||||
|
||||
#include <string>
|
||||
#include <set>
|
||||
#include "util.hh"
|
||||
|
||||
using namespace std;
|
||||
|
@ -52,6 +53,15 @@ extern unsigned int maxBuildJobs;
|
|||
database. */
|
||||
extern bool readOnlyMode;
|
||||
|
||||
/* Whether to allow builds by root. Corresponds to the
|
||||
`build-allow-root' configuration option. */
|
||||
extern bool buildAllowRoot;
|
||||
|
||||
/* The list of users under which root-initiated builds can be
|
||||
performed. Correspons to the `build-users' configuration
|
||||
option. */
|
||||
extern list<string> buildUsers;
|
||||
|
||||
|
||||
string querySetting(const string & name, const string & def);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue