diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-12 16:32:36 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-12 18:13:00 +0000 |
commit | 4720853129b6866775edd9f90ad6f10701f98a3c (patch) | |
tree | a13e1d077c6254de55521bf9edd91749546c71b5 /src/libstore/machines.hh | |
parent | 574bf60b4d47f64c0b83b0cd032d34a67dbb3453 (diff) |
Make `system-features` a store setting
This seems more correct. It also means one can specify the features a
store should support with --store and remote-store=..., which is useful.
I use this to clean up the build remotes test.
Diffstat (limited to 'src/libstore/machines.hh')
-rw-r--r-- | src/libstore/machines.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/machines.hh b/src/libstore/machines.hh index de92eb924..341d9bd97 100644 --- a/src/libstore/machines.hh +++ b/src/libstore/machines.hh @@ -4,6 +4,8 @@ namespace nix { +class Store; + struct Machine { const string storeUri; @@ -28,6 +30,8 @@ struct Machine { decltype(supportedFeatures) supportedFeatures, decltype(mandatoryFeatures) mandatoryFeatures, decltype(sshPublicHostKey) sshPublicHostKey); + + ref<Store> openStore() const; }; typedef std::vector<Machine> Machines; |