diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/core/global.nix | 2 | ||||
| -rw-r--r-- | modules/virtualization.nix | 31 | 
2 files changed, 17 insertions, 16 deletions
| diff --git a/modules/core/global.nix b/modules/core/global.nix index f44855d..7d372ab 100644 --- a/modules/core/global.nix +++ b/modules/core/global.nix @@ -11,8 +11,6 @@ in {      nixPath = [ "nixpkgs=${nix_path}" ];    }; -  boot.kernelPackages = pkgs.linuxPackages_zen; -    systemd.tmpfiles.rules = [      "L+ ${nix_path} - - - - ${pkgs.path}"    ]; diff --git a/modules/virtualization.nix b/modules/virtualization.nix index b1c42dd..74a879c 100644 --- a/modules/virtualization.nix +++ b/modules/virtualization.nix @@ -45,18 +45,21 @@      '')    ]; -  # 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" ]; +  # Use the custom kernel package set +  boot.kernelPackages = pkgs.linuxPackages_latest; + +  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" ];  } | 
