2023-12-25 20:14:17 +00:00
|
|
|
{ lib, ... }:
|
2023-12-13 07:40:08 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../../common/cpu/amd
|
|
|
|
../../../../common/cpu/amd/pstate.nix
|
|
|
|
../../../../common/gpu/amd
|
|
|
|
../../../../common/gpu/nvidia/prime.nix
|
|
|
|
../../../../common/pc/laptop
|
|
|
|
../../../../common/pc/laptop/ssd
|
|
|
|
];
|
|
|
|
|
2023-12-25 19:59:25 +00:00
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2023-12-13 07:40:08 +00:00
|
|
|
|
|
|
|
hardware = {
|
|
|
|
nvidia = {
|
|
|
|
modesetting.enable = lib.mkDefault true;
|
|
|
|
powerManagement.enable = lib.mkDefault true;
|
2023-12-25 19:59:25 +00:00
|
|
|
open = lib.mkDefault false;
|
2023-12-13 07:40:08 +00:00
|
|
|
|
|
|
|
prime = {
|
|
|
|
amdgpuBusId = "PCI:5:0:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|