2024-07-31 17:12:38 +00:00
|
|
|
{ config, lib, ... }:
|
2024-05-19 21:55:37 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
../../common/cpu/intel
|
|
|
|
../../common/gpu/nvidia
|
|
|
|
../../common/gpu/nvidia/prime.nix
|
|
|
|
../../common/pc/laptop
|
|
|
|
../../common/pc/ssd
|
|
|
|
../battery.nix
|
2024-05-20 10:15:58 +00:00
|
|
|
];
|
2024-05-19 21:55:37 +00:00
|
|
|
|
|
|
|
hardware.nvidia =
|
|
|
|
{
|
|
|
|
modesetting.enable = lib.mkDefault true;
|
2024-07-31 17:12:38 +00:00
|
|
|
open = lib.mkIf (lib.versionAtLeast config.hardware.nvidia.package.version "555") true;
|
2024-05-19 21:55:37 +00:00
|
|
|
|
|
|
|
prime =
|
|
|
|
{
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|