{ config, lib, modulesPath, ... }: # Proxmox guest (VM 132), q35 + OVMF. Hand-written rather than generated: # filesystems are matched by label, set when the disk is partitioned, so this # stays valid if the VM is ever rebuilt from scratch. { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot = { initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; # In the initrd, not kernelModules: otherwise there is no DRM device until # late boot and SDDM races it. initrd.kernelModules = [ "virtio_gpu" ]; kernelModules = [ "kvm-intel" ]; extraModulePackages = [ ]; }; fileSystems."/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-label/BOOT"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; }; swapDevices = [ { device = "/dev/disk/by-label/swap"; } ]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }