mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Reformat
Factored out code is now elegible for formatting.
This commit is contained in:
parent
0084a486cc
commit
7181d1f4a1
2 changed files with 21 additions and 9 deletions
|
@ -3,9 +3,7 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
FlakeSettings::FlakeSettings()
|
FlakeSettings::FlakeSettings() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
FlakeSettings flakeSettings;
|
FlakeSettings flakeSettings;
|
||||||
|
|
||||||
|
|
|
@ -16,21 +16,35 @@ struct FlakeSettings : public Config
|
||||||
{
|
{
|
||||||
FlakeSettings();
|
FlakeSettings();
|
||||||
|
|
||||||
Setting<bool> useRegistries{this, true, "use-registries",
|
Setting<bool> useRegistries{
|
||||||
|
this,
|
||||||
|
true,
|
||||||
|
"use-registries",
|
||||||
"Whether to use flake registries to resolve flake references.",
|
"Whether to use flake registries to resolve flake references.",
|
||||||
{}, true, Xp::Flakes};
|
{},
|
||||||
|
true,
|
||||||
|
Xp::Flakes};
|
||||||
|
|
||||||
Setting<bool> acceptFlakeConfig{this, false, "accept-flake-config",
|
Setting<bool> acceptFlakeConfig{
|
||||||
|
this,
|
||||||
|
false,
|
||||||
|
"accept-flake-config",
|
||||||
"Whether to accept nix configuration from a flake without prompting.",
|
"Whether to accept nix configuration from a flake without prompting.",
|
||||||
{}, true, Xp::Flakes};
|
{},
|
||||||
|
true,
|
||||||
|
Xp::Flakes};
|
||||||
|
|
||||||
Setting<std::string> commitLockFileSummary{
|
Setting<std::string> commitLockFileSummary{
|
||||||
this, "", "commit-lockfile-summary",
|
this,
|
||||||
|
"",
|
||||||
|
"commit-lockfile-summary",
|
||||||
R"(
|
R"(
|
||||||
The commit summary to use when committing changed flake lock files. If
|
The commit summary to use when committing changed flake lock files. If
|
||||||
empty, the summary is generated based on the action performed.
|
empty, the summary is generated based on the action performed.
|
||||||
)",
|
)",
|
||||||
{}, true, Xp::Flakes};
|
{},
|
||||||
|
true,
|
||||||
|
Xp::Flakes};
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: don't use a global variable.
|
// TODO: don't use a global variable.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue