summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-12-30 00:41:04 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-12-30 00:41:04 +0530
commit42864b392f534c27a4fb0f28c2ff6cc3448b1b29 (patch)
treee809035492bd7d1a4012f5f47a9c7fcf62ba51ba /modules
parentad5a72cbe28de79b9ef7544e34e764a4853435ad (diff)
update
Diffstat (limited to 'modules')
-rw-r--r--modules/virtualization.nix31
1 files changed, 28 insertions, 3 deletions
diff --git a/modules/virtualization.nix b/modules/virtualization.nix
index 28d9fe1..a92ffb9 100644
--- a/modules/virtualization.nix
+++ b/modules/virtualization.nix
@@ -1,5 +1,11 @@
-{ pkgs, config, ... }:
+{ pkgs, config, lib, ... }:
+let
+ gpuIDs = [
+ "10de:28e0"
+ "10de:22be"
+ ];
+in
{
virtualisation = {
libvirtd = {
@@ -47,8 +53,27 @@
'')
];
+ boot = {
+ /* initrd.kernelModules = [
+ "vfio_pci"
+ "vfio"
+ "vfio_iommu_type1"
+
+ "nvidia"
+ "nvidia_modeset"
+ "nvidia_uvm"
+ "nvidia_drm"
+ ]; */
+
+ kernelParams = [
+ "skippatcheck"
+ "pci_acs_override=downstream,multifunction"
+ /* ("vfio-pci.ids=" + lib.concatStringsSep "," gpuIDs) */
+ ];
+ };
+
# Use the custom kernel package set
- boot.kernelPackages = pkgs.linuxPackages_latest;
+ boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
# boot.kernelPatches = [
# {
@@ -63,5 +88,5 @@
# }
# ];
- boot.kernelParams = [ "skippatcheck" "pcie_acs_override=downstream,multifunction" ];
+ # boot.kernelParams = [ "skippatcheck" "pcie_acs_override=downstream,multifunction" ];
}