1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-18 08:19:35 +01:00

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.
This commit is contained in:
Robert Hensing 2023-10-19 16:59:35 +02:00
parent 9bc7b4f463
commit 9277eb276b
3 changed files with 37 additions and 0 deletions

View file

@ -714,6 +714,10 @@ public:
System features are user-defined, but Nix sets the following defaults:
- `apple-virt`
Included on darwin if virtualization is available.
- `kvm`
Included by default if `/dev/kvm` is accessible.