mirror of
https://github.com/blahai/nyx.git
synced 2025-01-18 19:10:21 +00:00
Global: add IOMMU toggle to virualisation
This commit is contained in:
parent
12ef689a43
commit
233e4fe6a8
1 changed files with 9 additions and 8 deletions
|
@ -1,5 +1,7 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
boot = {
|
||||
{ pkgs, lib, config, ... }:
|
||||
let enableIOMMU = true;
|
||||
in {
|
||||
boot = lib.mkIf enableIOMMU {
|
||||
initrd.kernelModules = lib.mkBefore [
|
||||
"kvm-amd"
|
||||
"vfio_pci"
|
||||
|
@ -49,5 +51,4 @@
|
|||
moonlight-qt # for linux vms
|
||||
looking-glass-client # for windows vms :husk:
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue