diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-13 17:00:00 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-13 17:00:00 +0530 |
| commit | 0afbfb63a19b71769448fe186d46a99fd7a1c2fe (patch) | |
| tree | 16f72d9b44e6b445ca1f8c5a39acf76ac9b67137 /modules/passthrough.nix | |
| parent | 6e008e8d8795c18b21761f9fe4bef5db3fdf39d3 (diff) | |
fix nvidia offload
Diffstat (limited to 'modules/passthrough.nix')
| -rw-r--r-- | modules/passthrough.nix | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/modules/passthrough.nix b/modules/passthrough.nix index 23afa88..ab68b8e 100644 --- a/modules/passthrough.nix +++ b/modules/passthrough.nix @@ -1,25 +1,6 @@ { pkgs, lib, config, ... }: -let - # RTX 3070 Ti - gpuIDs = [ - "10de:28e0" # Graphics - "10de:22be" # Audio - ]; -in { - boot = { - initrd.kernelModules = [ - "vfio_pci" - "vfio" - "vfio_iommu_type1" - - "nvidia" - "nvidia_modeset" - "nvidia_uvm" - "nvidia_drm" - ]; - kernelParams = [ - ("vfio-pci.ids=" + lib.concatStringsSep "," gpuIDs) - ]; - }; +{ + environment.systemPackages = with pkgs; [ + ]; } |
