nixos-generate-config: detect parallels virtualization
This commit is contained in:
parent
020c74014b
commit
08ddd8a5fc
1 changed files with 6 additions and 0 deletions
|
@ -300,6 +300,12 @@ if ($virt eq "oracle") {
|
|||
push @attrs, "virtualisation.virtualbox.guest.enable = true;"
|
||||
}
|
||||
|
||||
# Check if we're a Parallels guest. If so, enable the guest additions.
|
||||
# It is blocked by https://github.com/systemd/systemd/pull/23859
|
||||
if ($virt eq "parallels") {
|
||||
push @attrs, "hardware.parallels.enable = true;";
|
||||
push @attrs, "nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ \"prl-tools\" ];";
|
||||
}
|
||||
|
||||
# Likewise for QEMU.
|
||||
if ($virt eq "qemu" || $virt eq "kvm" || $virt eq "bochs") {
|
||||
|
|
Loading…
Reference in a new issue