Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
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
8
9namespace nix {
10// Forward declarations
11struct EvalSettings;
12
13} // namespace nix
14
15namespace nix::flake {
16
17struct 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
Definition configuration.hh:476
Definition eval-settings.hh:50