diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index bb7d8036bd49891aedf1b58f5dd684275f75124a..6f7893e41454f23ed748f16f4df82bdecb5fab8c 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -148,6 +148,8 @@ struct BuildResult
 struct StoreConfig : public Config
 {
     using Config::Config;
+    StoreConfig() = delete;
+
 
     const PathSetting storeDir_{this, false, settings.nixStore,
         "store", "path to the Nix store"};