diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-10-19 16:59:35 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-11-16 18:59:06 +0100 |
commit | af21431140c30c15077e6d0f32601f0d15a18882 (patch) | |
tree | 0ab60486b427c4281e61d7a329dcf5cd28fc402a /src/libstore/globals.hh | |
parent | 184a20ec04eb79272999babe5a4105b6755b9b3d (diff) |
libstore: Add apple-virt to system features when available
I'm sure that we'll adjust the implementation over time, but this
at least discerns between an apple silicon bare metal machine and
a tart VM.
(cherry picked from commit 9277eb276bf0a942e88fcf499f6a6b9c262be853)
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r-- | src/libstore/globals.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index cf10edebd..dba7d78ef 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -708,6 +708,7 @@ public: `kvm` feature. This setting by default includes `kvm` if `/dev/kvm` is accessible, + `apple-virt` if hardware virtualization is available on macOS, and the pseudo-features `nixos-test`, `benchmark` and `big-parallel` that are used in Nixpkgs to route builds to specific machines. )", {}, false}; |