1 files changed, 14 insertions(+), 0 deletions(-)
configuration.nix+14| ... | @@ -82,6 +82,20 @@ | ... | @@ -82,6 +82,20 @@ |
| 82 | 82 | ||
| 83 | # Optionally, you may need to select the appropriate driver version for your specific GPU. | 83 | # Optionally, you may need to select the appropriate driver version for your specific GPU. |
| 84 | package = config.boot.kernelPackages.nvidiaPackages.stable; | 84 | package = config.boot.kernelPackages.nvidiaPackages.stable; |
| 85 | #Fixes a glitch | ||
| 86 | nvidiaPersistenced = true; | ||
| 87 | |||
| 88 | #Required for amdgpu and nvidia gpu pairings | ||
| 89 | # modesetting.enable = true; | ||
| 90 | |||
| 91 | prime = { | ||
| 92 | # offload.enable = true; | ||
| 93 | #sync.enable = true; | ||
| 94 | |||
| 95 | amdgpuBusId = "PCI:0f:00.0"; | ||
| 96 | |||
| 97 | nvidiaBusId = "PCI:01:00.0"; | ||
| 98 | }; | ||
| 85 | }; | 99 | }; |
| 86 | # Bootloader. | 100 | # Bootloader. |
| 87 | #boot.loader.systemd-boot.enable = true; | 101 | #boot.loader.systemd-boot.enable = true; |