forest/common/generic-qemu.nix

20 lines
452 B
Nix
Raw Normal View History

2023-10-02 17:47:47 +00:00
{ modulesPath, ... }: {
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules =
[ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.kernelParams = [
"console=tty1"
"console=ttyS0,115200"
];
fileSystems."/" = {
device = "/dev/vda1";
fsType = "ext4";
};
}