This commit is contained in:
Bryan Ramos 2023-03-22 00:11:44 -04:00
commit a79fc67d37
647 changed files with 123931 additions and 0 deletions

24
sysConfig/virt.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, pkgs, lib, ... }:
{
boot = {
kernelParams = [ "intel_iommu=on" ];
kernelModules = [ "kvm-intel" "virtio" "vfio-pci" ];
# TODO: (bryan) - Fix GPU passthrough
# extraModprobeConfig = ''
# options vfio-pci ids=10de:1f82,10de:10fa
# '';
};
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [
qemu_kvm
libvirt
virt-manager
OVMF
];
}