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