mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02: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:
parent
9bc7b4f463
commit
9277eb276b
3 changed files with 37 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue