![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Public Member Functions | |
| bool | systemSupported (const std::string &system) const |
| bool | allSupported (const StringSet &features) const |
| bool | mandatoryMet (const StringSet &features) const |
| Machine (const std::string &storeUri, decltype(systemTypes) systemTypes, decltype(sshKey) sshKey, decltype(maxJobs) maxJobs, decltype(speedFactor) speedFactor, decltype(supportedFeatures) supportedFeatures, decltype(mandatoryFeatures) mandatoryFeatures, decltype(sshPublicHostKey) sshPublicHostKey) | |
| StoreReference | completeStoreReference () const |
| ref< Store > | openStore () const |
Static Public Member Functions | |
| static Machines | parseConfig (const StringSet &defaultSystems, const std::string &config) |
Public Attributes | |
| const StoreReference | storeUri |
| const StringSet | systemTypes |
| const std::optional< std::filesystem::path > | sshKey |
| const unsigned int | maxJobs |
| const float | speedFactor |
| const StringSet | supportedFeatures |
| const StringSet | mandatoryFeatures |
| const std::string | sshPublicHostKey |
| bool | enabled = true |
| bool nix::Machine::allSupported | ( | const StringSet & | features | ) | const |
| StoreReference nix::Machine::completeStoreReference | ( | ) | const |
Elaborate storeUri into a complete store reference, incorporating information from the other fields of the Machine as applicable.
| bool nix::Machine::mandatoryMet | ( | const StringSet & | features | ) | const |
Open a Store for this machine.
Just a simple function composition:
|
static |
Parse a machine configuration.
Every machine is specified on its own line, and lines beginning with @ are interpreted as paths to other configuration files in the same format.
| bool nix::Machine::systemSupported | ( | const std::string & | system | ) | const |
| const StringSet nix::Machine::systemTypes |