about summary refs log tree commit diff
path: root/nix/hosts/vm/hardware.nix
blob: 89c3d8b64fefc7dd9342670686dbe2d646b62564 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ modulesPath, ... }:
{
  imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
  boot.loader.grub = {
    efiSupport = true;
    efiInstallAsRemovable = true;
    device = "nodev";
  };
  fileSystems."/boot" = { device = "/dev/disk/by-uuid/E783-E9AE"; fsType = "vfat"; };
  boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ];
  boot.initrd.kernelModules = [ "nvme" ];
  fileSystems."/" = { device = "/dev/vda2"; fsType = "ext4"; };
  swapDevices = [{ device = "/dev/vda3"; }];
}