26 lines
473 B
Nix
26 lines
473 B
Nix
{modulesPath, ...}: {
|
|
imports = [
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
../. # Server config.
|
|
];
|
|
|
|
# Load kernel modules.
|
|
boot.initrd.availableKernelModules = [
|
|
"ata_piix"
|
|
"uhci_hcd"
|
|
"virtio_pci"
|
|
"virtio_scsi"
|
|
"sd_mod"
|
|
];
|
|
|
|
boot.kernelModules = ["kvm-intel"];
|
|
|
|
# Configure the bootloader.
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "/dev/sda";
|
|
};
|
|
|
|
# Enable QEMU guest agent
|
|
services.qemuGuest.enable = true;
|
|
}
|