forest/common/generic-qemu.nix

22 lines
512 B
Nix
Raw Normal View History

2023-10-02 17:47:47 +00:00
{ modulesPath, ... }: {
2024-01-19 12:37:14 +00:00
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ./generic-grub.nix ];
boot.loader.grub.device = "/dev/sda";
2023-10-02 17:47:47 +00:00
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";
};
}