1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 06:52:43 +01: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

@ -23,6 +23,11 @@ struct SSHStoreConfig : virtual RemoteStoreConfig, virtual CommonSSHStoreConfig
return "Experimental SSH Store";
}
static std::set<std::string> uriSchemes()
{
return {"ssh-ng"};
}
std::string doc() override;
};
@ -40,6 +45,11 @@ struct MountedSSHStoreConfig : virtual SSHStoreConfig, virtual LocalFSStoreConfi
return "Experimental SSH Store with filesystem mounted";
}
static std::set<std::string> uriSchemes()
{
return {"mounted-ssh-ng"};
}
std::string doc() override;
std::optional<ExperimentalFeature> experimentalFeature() const override