Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ApplyConfigOptions Struct Reference

#include <apply-config-options.hh>

Public Member Functions

std::string relativeDisplay () const

Public Attributes

std::optional< Pathpath = std::nullopt
std::optional< Pathhome = std::nullopt
bool fromEnvVar = false

Detailed Description

Options for applying Config settings.

Member Function Documentation

◆ relativeDisplay()

std::string nix::ApplyConfigOptions::relativeDisplay ( ) const
inline

Display the relative path field, with a reasonable default if none is available.

Member Data Documentation

◆ fromEnvVar

bool nix::ApplyConfigOptions::fromEnvVar = false

Is the configuration being loaded from the $NIX_CONFIG environment variable?

Used for formatting error messages.

◆ home

std::optional<Path> nix::ApplyConfigOptions::home = std::nullopt

If set, tilde paths (like ~/.config/repl.nix) are allowed and the tilde is substituted for this directory.

◆ path

std::optional<Path> nix::ApplyConfigOptions::path = std::nullopt

The configuration file being loaded.

If set, relative paths are allowed and interpreted as relative to the directory of this path.


The documentation for this struct was generated from the following file: