|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <apply-config-options.hh>
Public Member Functions | |
| std::string | relativeDisplay () const |
Public Attributes | |
| std::optional< Path > | path = std::nullopt |
| std::optional< Path > | home = std::nullopt |
| bool | fromEnvVar = false |
Options for applying Config settings.
|
inline |
Display the relative path field, with a reasonable default if none is available.
| bool nix::ApplyConfigOptions::fromEnvVar = false |
Is the configuration being loaded from the $NIX_CONFIG environment variable?
Used for formatting error messages.
| 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.
| 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.