NVIDIA: Difference between revisions
imported>Pmyjavec Worded bus formatting section a little better. |
imported>User No edit summary |
||
Line 84: | Line 84: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
... | ... | ||
hardware.nvidia. | hardware.nvidia.prime.sync.enable = true; | ||
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA | # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA | ||
hardware.nvidia. | hardware.nvidia.prime.nvidiaBusId = "PCI:1:0:0"; | ||
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA | # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA | ||
hardware.nvidia. | hardware.nvidia.prime.intelBusId = "PCI:0:2:0"; | ||
} | } | ||
Line 98: | Line 98: | ||
{ | { | ||
services.xserver.videoDrivers = [ "intel" "nvidia" ]; | services.xserver.videoDrivers = [ "intel" "nvidia" ]; | ||
hardware.nvidia. | hardware.nvidia.prime.sync.enable = true; | ||
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA | # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA | ||
hardware.nvidia. | hardware.nvidia.prime.nvidiaBusId = "PCI:1:0:0"; | ||
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA | # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA | ||
hardware.nvidia. | hardware.nvidia.prime.intelBusId = "PCI:0:2:0"; | ||
} | } | ||
</nowiki>}} | </nowiki>}} |