Lenovo Legion 16achg6: Fix gpu configuration to work with both x11/wayland (#802)

Co-authored-by: Alojzy Leszcz <aleszcz@pm.me>
This commit is contained in:
Alojzy Leszcz
2023-12-25 20:59:25 +01:00
committed by GitHub
parent e4ded1ec8e
commit 51c532cc50
2 changed files with 6 additions and 2 deletions

View File

@@ -10,12 +10,14 @@
../../../../common/pc/laptop/ssd
];
services.xserver.videoDrivers = [ "nvidia" "amdgpu" ];
services.xserver.videoDrivers = [ "nvidia" ];
boot.initrd.kernelModules = [ "amdgpu" ];
hardware = {
nvidia = {
modesetting.enable = lib.mkDefault true;
powerManagement.enable = lib.mkDefault true;
open = lib.mkDefault false;
prime = {
amdgpuBusId = "PCI:5:0:0";