Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::flake::Settings Struct Reference
Inheritance diagram for nix::flake::Settings:
nix::Config nix::AbstractConfig

Public Member Functions

void configureEvalSettings (nix::EvalSettings &evalSettings) const
Public Member Functions inherited from nix::Config
 Config (StringMap initials={})
bool set (const std::string &name, const std::string &value) override
void addSetting (AbstractSetting *setting)
void getSettings (std::map< std::string, SettingInfo > &res, bool overriddenOnly=false) const override
void resetOverridden () override
nlohmann::json toJSON () override
std::string toKeyValue (bool overriddenOnly=false) override
void convertToArgs (Args &args, const std::string &category) override
Public Member Functions inherited from nix::AbstractConfig
void applyConfig (const std::string &contents, const std::string &path="<unknown>")
void warnUnknownSettings ()
void reapplyUnknownSettings ()

Public Attributes

Setting< bool > useRegistries
Setting< bool > acceptFlakeConfig
Setting< std::string > commitLockFileSummary

Additional Inherited Members

Public Types inherited from nix::Config
using Settings = std::map<std::string, SettingData>
Protected Member Functions inherited from nix::AbstractConfig
 AbstractConfig (StringMap initials={})
Protected Attributes inherited from nix::AbstractConfig
StringMap unknownSettings

Member Data Documentation

◆ acceptFlakeConfig

Setting<bool> nix::flake::Settings::acceptFlakeConfig
Initial value:
{
this,
false,
"accept-flake-config",
"Whether to accept Nix configuration settings from a flake without prompting.",
{},
true,
Xp::Flakes}

◆ commitLockFileSummary

Setting<std::string> nix::flake::Settings::commitLockFileSummary
Initial value:
{
this,
"",
"commit-lock-file-summary",
R"(
The commit summary to use when committing changed flake lock files. If
empty, the summary is generated based on the action performed.
)",
{"commit-lockfile-summary"},
true,
Xp::Flakes}

◆ useRegistries

Setting<bool> nix::flake::Settings::useRegistries
Initial value:
{
this,
true,
"use-registries",
"Whether to use flake registries to resolve flake references.",
{},
true,
Xp::Flakes}

The documentation for this struct was generated from the following files:
  • libflake/include/nix/flake/settings.hh
  • libflake/settings.cc