Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
globals.hh File Reference
#include "types.hh"
#include "config.hh"
#include "environment-variables.hh"
#include "experimental-features.hh"
#include "users.hh"
#include <map>
#include <limits>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  nix::MaxBuildJobsSetting
 
class  nix::Settings
 

Enumerations

enum  SandboxMode { smEnabled , smRelaxed , smDisabled }
 

Functions

void nix::loadConfFile (AbstractConfig &config)
 
std::vector< Pathnix::getUserConfigFiles ()
 
void nix::initLibStore (bool loadConfig)
 
void nix::assertLibStoreInitialized ()
 

Variables

const uint32_t nix::maxIdsPerBuild
 

Function Documentation

◆ assertLibStoreInitialized()

void nix::assertLibStoreInitialized ( )

It's important to initialize before doing anything, which is why we call upon the programmer to handle this correctly. However, we only add this in a key locations, so as not to litter the code.

◆ initLibStore()

void nix::initLibStore ( bool loadConfig = true)
Parameters
loadConfigWhether to load configuration from nix.conf, NIX_CONFIG, etc. May be disabled for unit tests.
Note
When using libexpr, and/or libmain, This is not sufficient. See initNix().

◆ loadConfFile()

void nix::loadConfFile ( AbstractConfig & config)

Load the configuration (from nix.conf, NIX_CONFIG, etc.) into the given configuration object.

Usually called with globalConfig.

Variable Documentation

◆ maxIdsPerBuild

const uint32_t nix::maxIdsPerBuild
Initial value:
=
1