aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-17 11:58:47 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-08-02 15:46:38 -0400
commit3b592c880ae76707cc832e5f227e261be29661bf (patch)
tree8ffcf145ccc3a9cceaaca004e64f0fa8915a3a9e /src/nix/main.cc
parent3723363697b3908a2f58dce3e706783b1c783414 (diff)
Add infra for experimental store implemenations
This is analogous to that for experimental settings and flags that we have also added as of late.
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r--src/nix/main.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index df66beb8c..c5a9c8b33 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -180,8 +180,10 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
for (auto & implem : *Implementations::registered) {
auto storeConfig = implem.getConfig();
auto storeName = storeConfig->name();
- stores[storeName]["doc"] = storeConfig->doc();
- stores[storeName]["settings"] = storeConfig->toJSON();
+ auto & j = stores[storeName];
+ j["doc"] = storeConfig->doc();
+ j["settings"] = storeConfig->toJSON();
+ j["experimentalFeature"] = storeConfig->experimentalFeature();
}
res["stores"] = std::move(stores);