mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Initial
This commit is contained in:
commit
a79fc67d37
647 changed files with 123931 additions and 0 deletions
24
sysConfig/virt.nix
Normal file
24
sysConfig/virt.nix
Normal 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
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue