Lenovo Legion 16achg6 support (#796)

This commit is contained in:
Alojzy Leszcz
2023-12-13 08:40:08 +01:00
committed by GitHub
parent fef05bf9c8
commit 7763c6fd1f
5 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
{ 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
];
services.xserver.videoDrivers = [ "nvidia" "amdgpu" ];
hardware = {
nvidia = {
modesetting.enable = lib.mkDefault true;
powerManagement.enable = lib.mkDefault true;
prime = {
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};
}