#pragma once ///@file #include "types.hh" #include "config.hh" #include "util.hh" #include #include #include namespace nix { struct FlakeSettings : public Config { FlakeSettings(); Setting useRegistries{this, true, "use-registries", "Whether to use flake registries to resolve flake references.", {}, true, Xp::Flakes}; Setting acceptFlakeConfig{this, false, "accept-flake-config", "Whether to accept nix configuration from a flake without prompting.", {}, true, Xp::Flakes}; Setting commitLockFileSummary{ this, "", "commit-lockfile-summary", R"( The commit summary to use when committing changed flake lock files. If empty, the summary is generated based on the action performed. )", {}, true, Xp::Flakes}; }; // TODO: don't use a global variable. extern FlakeSettings flakeSettings; }