nixos-hardware/lenovo/legion/16achg6/hybrid/default.nix

28 lines
619 B
Nix
Raw Normal View History

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
];
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;
open = lib.mkDefault false;
2023-12-13 07:40:08 +00:00
prime = {
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};
}