Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
settings.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include <sys/types.h>
5
#include <string>
6
7
#include "
nix/util/configuration.hh
"
8
9
namespace
nix {
10
// Forward declarations
11
struct
EvalSettings
;
12
13
}
// namespace nix
14
15
namespace
nix::flake {
16
17
struct
Settings :
public
Config
18
{
19
Settings();
20
21
void
configureEvalSettings(
nix::EvalSettings
& evalSettings)
const
;
22
23
Setting<bool>
useRegistries{
24
this
,
25
true
,
26
"use-registries"
,
27
"Whether to use flake registries to resolve flake references."
,
28
{},
29
true
,
30
Xp::Flakes};
31
32
Setting<bool>
acceptFlakeConfig{
33
this
,
34
false
,
35
"accept-flake-config"
,
36
"Whether to accept Nix configuration settings from a flake without prompting."
,
37
{},
38
true
,
39
Xp::Flakes};
40
41
Setting<std::string>
commitLockFileSummary{
42
this
,
43
""
,
44
"commit-lock-file-summary"
,
45
R
"(
46
The commit summary to use when committing changed flake lock files. If
47
empty, the summary is generated based on the action performed.
48
)",
49
{
"commit-lockfile-summary"
},
50
true
,
51
Xp::Flakes};
52
};
53
54
}
// namespace nix::flake
nix::Setting
Definition
configuration.hh:476
configuration.hh
nix::EvalSettings
Definition
eval-settings.hh:50
libflake
include
nix
flake
settings.hh
Generated by
1.18.0