mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-08 03:07:17 +02:00
d906d42330
It was originally renamed in https://github.com/NixOS/nix/pull/10691, but https://github.com/NixOS/nix/pull/9063 accidentally removed the new name and alias.
53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
#pragma once
|
|
///@file
|
|
|
|
#include "types.hh"
|
|
#include "config.hh"
|
|
#include "util.hh"
|
|
|
|
#include <map>
|
|
#include <limits>
|
|
|
|
#include <sys/types.h>
|
|
|
|
namespace nix {
|
|
|
|
struct FlakeSettings : public Config
|
|
{
|
|
FlakeSettings();
|
|
|
|
Setting<bool> useRegistries{
|
|
this,
|
|
true,
|
|
"use-registries",
|
|
"Whether to use flake registries to resolve flake references.",
|
|
{},
|
|
true,
|
|
Xp::Flakes};
|
|
|
|
Setting<bool> acceptFlakeConfig{
|
|
this,
|
|
false,
|
|
"accept-flake-config",
|
|
"Whether to accept nix configuration from a flake without prompting.",
|
|
{},
|
|
true,
|
|
Xp::Flakes};
|
|
|
|
Setting<std::string> commitLockFileSummary{
|
|
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};
|
|
};
|
|
|
|
// TODO: don't use a global variable.
|
|
extern FlakeSettings flakeSettings;
|
|
|
|
}
|