Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
globals.hh File Reference
#include "lix/libutil/environment-variables.hh"
#include "lix/libutil/types.hh"
#include "lix/libutil/config.hh"
#include <map>
#include <limits>
#include <sys/types.h>
#include "libstore-settings.gen.inc"

Go to the source code of this file.

Classes

struct  nix::MaxBuildJobsSetting
struct  nix::PluginFilesSetting
class  nix::Settings

Enumerations

enum  SandboxMode { smEnabled , smRelaxed , smDisabled }

Functions

void nix::to_json (JSON &j, const SandboxMode &e)
void nix::from_json (const JSON &j, SandboxMode &e)
void nix::initPlugins ()
void nix::loadConfFile ()
std::vector< Pathnix::getUserConfigFiles ()
std::vector< Pathnix::getHomeConfigFile ()
void nix::initLibStore ()
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 ( )

NB: This is not sufficient. You need to call initNix()

◆ initPlugins()

void nix::initPlugins ( )

This should be called after settings are initialized, but before anything else

Variable Documentation

◆ maxIdsPerBuild

const uint32_t nix::maxIdsPerBuild
Initial value:
=
1