Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
globals.hh File Reference
#include <sys/types.h>
#include "nix/util/types.hh"
#include "nix/util/configuration.hh"
#include "nix/util/environment-variables.hh"
#include "nix/store/build/derivation-builder.hh"
#include "nix/store/local-settings.hh"
#include "nix/store/store-reference.hh"
#include "nix/store/worker-settings.hh"
#include "nix/store/config.hh"

Go to the source code of this file.

Classes

struct  nix::LogFileSettings
struct  nix::NarInfoDiskCacheSettings
class  nix::Settings

Functions

void nix::loadConfFile (AbstractConfig &config)
void nix::initLibStore (bool loadConfig)
void nix::assertLibStoreInitialized ()

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.