NixOSConfig/lib/hardware/qemu.nix

28 lines
424 B
Nix
Raw Normal View History

2023-12-01 14:15:40 +00:00
{ config, lib, pkgs, modulesPath, ... }: {
imports = [
2023-12-01 14:38:58 +00:00
./base.nix
2023-12-01 14:15:40 +00:00
(modulesPath + "/profiles/qemu-guest.nix")
];
boot = {
initrd = {
availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
kernelModules = [];
};
kernelModules = [
"kvm-intel"
];
extraModulePackages = [];
};
}