aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index ab1c09aa2..9f395425a 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -66,7 +66,7 @@ public:
/* File name of the socket the daemon listens to. */
Path nixDaemonSocketFile;
- Setting<std::string> storeUri{this, getEnv("NIX_REMOTE", "auto"), "store",
+ Setting<std::string> storeUri{this, getEnv("NIX_REMOTE").value_or("auto"), "store",
"The default Nix store to use."};
Setting<bool> keepFailed{this, false, "keep-failed",
@@ -353,6 +353,13 @@ public:
Setting<Paths> pluginFiles{this, {}, "plugin-files",
"Plugins to dynamically load at nix initialization time."};
+
+ Setting<Strings> experimentalFeatures{this, {}, "experimental-features",
+ "Experimental Nix features to enable."};
+
+ bool isExperimentalFeatureEnabled(const std::string & name);
+
+ void requireExperimentalFeature(const std::string & name);
};