system/sandbar: Add vfio for xHCI controller
This commit is contained in:
parent
4c3b933477
commit
dcae2c375f
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelParams = [ "intel_iommu=on" ];
|
||||
|
||||
tmp.cleanOnBoot = true;
|
||||
|
||||
initrd.systemd.enable = true;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
imports = [
|
||||
./boot-config.nix
|
||||
./hardware-configuration.nix
|
||||
./vfio.nix
|
||||
../../sets/secureBoot.nix
|
||||
../../sets/sshd.nix
|
||||
../../sets/workstation.nix
|
||||
|
|
17
system/sandbar/vfio.nix
Normal file
17
system/sandbar/vfio.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
boot.kernelParams = [
|
||||
"intel_iommu=on"
|
||||
"vfio-pci.ids=1b21:1242"
|
||||
];
|
||||
boot.initrd.kernelModules = [
|
||||
"vfio"
|
||||
"vfio_pci"
|
||||
"vfio_iommu_type1"
|
||||
"iommufd"
|
||||
];
|
||||
services.udev.extraRules = ''
|
||||
SUBSYSTEM=="vfio", MODE="660", GROUP="wheel"
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue