Refactor
This commit is contained in:
parent
556e0e1eb2
commit
e0a82ee731
49 changed files with 1076 additions and 765 deletions
19
modules/virtual/vfio.nix
Normal file
19
modules/virtual/vfio.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{lib, ...}: {
|
||||
# Ajoute dans l’initrd sans auto-référencer l’option
|
||||
boot = {
|
||||
initrd.kernelModules = lib.mkAfter [
|
||||
"vfio_pci"
|
||||
"vfio"
|
||||
"vfio_iommu_type1"
|
||||
];
|
||||
|
||||
# Ajoute les params IOMMU proprement
|
||||
kernelParams = lib.mkAfter [
|
||||
"amd_iommu=on"
|
||||
"iommu=pt"
|
||||
];
|
||||
|
||||
# Valeur par défaut (sans référencer config.*)
|
||||
kernel.sysctl."vm.nr_hugepages" = lib.mkDefault 1024;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue