2023-12-25 15:14:17 -05:00
|
|
|
{ lib, ... }:
|
2023-12-13 02:40:08 -05: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 14:59:25 -05:00
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2023-12-13 02:40:08 -05:00
|
|
|
|
|
|
|
hardware = {
|
|
|
|
nvidia = {
|
|
|
|
modesetting.enable = lib.mkDefault true;
|
|
|
|
powerManagement.enable = lib.mkDefault true;
|
2023-12-25 14:59:25 -05:00
|
|
|
open = lib.mkDefault false;
|
2023-12-13 02:40:08 -05:00
|
|
|
|
|
|
|
prime = {
|
|
|
|
amdgpuBusId = "PCI:5:0:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|