1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

Move uriSchemes to *StoreConfig

It is a property of the configuration of a store --- how a store URL is
parsed into a store config, not a store itself.

Progress towards #10766
This commit is contained in:
John Ericson 2024-07-15 23:26:39 -04:00
parent 57399bfc0e
commit 2aa9cf34dd
14 changed files with 50 additions and 39 deletions

View file

@ -83,14 +83,6 @@ public:
}
}
static std::set<std::string> uriSchemes()
{
static bool forceHttp = getEnv("_NIX_FORCE_HTTP") == "1";
auto ret = std::set<std::string>({"http", "https"});
if (forceHttp) ret.insert("file");
return ret;
}
protected:
void maybeDisable()