diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-12 11:16:19 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-12 11:16:19 +0530 |
| commit | 8e88c4696a2e55eea4680a4754d49cb043006c46 (patch) | |
| tree | 3b330448316ea3ae3ffa66f764709d188887f28c /modules | |
| parent | 123ec7ee5242b1494312494b1aaa2841c74f69eb (diff) | |
make sure virtio-pci loads before nvidia
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/login.nix | 2 | ||||
| -rw-r--r-- | modules/virtualization.nix | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/login.nix b/modules/login.nix index 49daba0..0917b7f 100644 --- a/modules/login.nix +++ b/modules/login.nix @@ -11,7 +11,7 @@ settings = { default_session = { # command = "tuigreet --time --remember --cmd \"sway\""; - command = "tuigreet --time --remember --cmd \"labwc\""; + command = "tuigreet --time --remember --cmd labwc"; # command = "tuigreet --time --remember --cmd \"dwl -s dwlb\""; user = "greeter"; }; diff --git a/modules/virtualization.nix b/modules/virtualization.nix index d9dccd4..35910ae 100644 --- a/modules/virtualization.nix +++ b/modules/virtualization.nix @@ -86,20 +86,20 @@ in "vfio_pci" "vfio" "vfio_iommu_type1" - - "nvidia" - "nvidia_modeset" - "nvidia_uvm" - "nvidia_drm" ]; kernelParams = [ + "modprobe.blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm" "skippatcheck" "pci_acs_override=downstream,multifunction" ("vfio-pci.ids=" + lib.concatStringsSep "," gpuIDs) ]; }; + boot.extraModprobeConfig = '' + options vfio-pci ids=${lib.concatStringsSep "," gpuIDs} + ''; + # Use the custom kernel package set boot.kernelPackages = pkgs.linuxPackages_xanmod_latest; |
