mirror of
https://github.com/NixOS/nix
synced 2025-06-29 19:03:16 +02:00
Add experimental-features setting
Experimental features are now opt-in. There are currently two experimental features: "nix-command" (which enables the "nix" command), and "flakes" (which enables support for flakes). This will allow us to merge experimental features more quickly, without committing to supporting them indefinitely. Typical usage: $ nix build --experimental-features 'nix-command flakes' nixpkgs#hello
This commit is contained in:
parent
a56036fa87
commit
8e478c2341
5 changed files with 17 additions and 0 deletions
|
@ -356,6 +356,11 @@ public:
|
|||
|
||||
Setting<std::string> githubAccessToken{this, "", "github-acces-token",
|
||||
"GitHub access token to get access to GitHub data through the GitHub API for github:<..> flakes."};
|
||||
|
||||
Setting<Strings> experimentalFeatures{this, {}, "experimental-features",
|
||||
"Experimental Nix features to enable."};
|
||||
|
||||
void requireExperimentalFeature(const std::string & name);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue