mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
qemu requires VIRTIO_BLK (and dependencies) for virtio drives
This commit is contained in:
parent
64d0069be3
commit
11e5207a2d
@ -386,8 +386,14 @@ in
|
||||
# Wireless won't work in the VM.
|
||||
networking.wireless.enable = mkOverride 50 false;
|
||||
|
||||
system.requiredKernelConfig = optional (!cfg.graphics) (with config.lib.kernelConfig; [
|
||||
system.requiredKernelConfig = with config.lib.kernelConfig; [
|
||||
(isEnabled "VIRTIO_BLK")
|
||||
(isEnabled "VIRTIO_PCI")
|
||||
(isYes "BLK_DEV")
|
||||
(isYes "PCI")
|
||||
(isYes "EXPERIMENTAL")
|
||||
] ++ optional (!cfg.graphics) [
|
||||
(isYes "SERIAL_8250_CONSOLE")
|
||||
(isYes "SERIAL_8250")
|
||||
]);
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user