mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
got virtual machines working besides audio
This commit is contained in:
parent
50fae0b2eb
commit
e06def29b8
4 changed files with 19 additions and 15 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
boot = {
|
||||
kernelParams = [ "amd_iommu=on" ];
|
||||
boot.kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
|
||||
kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
|
||||
initrd.kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
|
||||
extraModprobeConfig = "options vfio-pci ids=10de:228e,10de:2504";
|
||||
};
|
||||
|
|
@ -9,11 +10,12 @@
|
|||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
runAsRoot = false;
|
||||
ovmf = {
|
||||
enable = true;
|
||||
package = pkgs.OVMFFull;
|
||||
};
|
||||
runAsRoot = true;
|
||||
ovmf.enable = true;
|
||||
# verbatimConfig = ''
|
||||
# user = gerg
|
||||
# namespaces = []
|
||||
# '';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -47,4 +49,4 @@
|
|||
# Copy hook files
|
||||
ln -sf ${qemuHook} /var/lib/libvirt/hooks/qemu
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue