From 4050ba0a89a3a97b29d4f281b7570495cf5596d9 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 2 Jun 2024 09:43:20 +0530 Subject: update --- modules/amdgpu.nix | 3 --- modules/core/global.nix | 2 ++ modules/virtualization.nix | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/amdgpu.nix b/modules/amdgpu.nix index 0dc6f61..fe7f898 100644 --- a/modules/amdgpu.nix +++ b/modules/amdgpu.nix @@ -23,7 +23,4 @@ systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ]; - - boot.kernelPackages = pkgs.linuxPackages_xanmod_latest; - boot.kernelParams = [ "pcie_acs_override=downstream,multifunction" ]; } diff --git a/modules/core/global.nix b/modules/core/global.nix index 5b32baa..6fd97bb 100644 --- a/modules/core/global.nix +++ b/modules/core/global.nix @@ -11,6 +11,8 @@ in { nixPath = [ "nixpkgs=${nix_path}" ]; }; + boot.kernelPackages = pkgs.linuxPackages_latest; + systemd.tmpfiles.rules = [ "L+ ${nix_path} - - - - ${pkgs.path}" ]; diff --git a/modules/virtualization.nix b/modules/virtualization.nix index e0d9b88..caf9046 100644 --- a/modules/virtualization.nix +++ b/modules/virtualization.nix @@ -71,4 +71,19 @@ systemctl set-property --runtime -- init.scope AllowedCPUs="" '') ]; + + boot.kernelPatches = [ + { + # https://github.com/Kinsteen/win10-gpu-passthrough/blob/main/pat_patch.diff + name = "disable-pat-check"; + patch = ../dist/disable-pat-check.patch; + } + { + # https://aur.archlinux.org/cgit/aur.git/tree/1001-6.8.0-add-acs-overrides.patch?h=linux-vfio + name = "acso"; + patch = ../dist/acso.patch; + } + ]; + + boot.kernelParams = [ "skippatcheck" "pcie_acs_override=downstream,multifunction" ]; } -- cgit v1.2.3