mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-05 18:49:40 +01:00
b2186d6c3c
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
13 lines
330 B
Nix
13 lines
330 B
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
hardware.nvidia.modesetting.enable = true;
|
|
hardware.opengl.driSupport32Bit = true;
|
|
hardware.opengl.enable = true;
|
|
|
|
hardware.nvidia.prime = {
|
|
# Bus ID of the Intel GPU.
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
|
# Bus ID of the NVIDIA GPU.
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
};
|
|
}
|