2023-09-20 12:32:40 +02:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../common/cpu/amd
|
2023-10-19 21:54:11 +02:00
|
|
|
../../common/cpu/amd/pstate.nix
|
2023-09-20 12:32:40 +02:00
|
|
|
../../common/gpu/amd
|
|
|
|
../../common/gpu/nvidia/prime.nix
|
2024-09-04 19:39:18 +02:00
|
|
|
../../common/gpu/nvidia/turing
|
2023-09-20 12:32:40 +02:00
|
|
|
../../common/pc/laptop
|
|
|
|
../../common/pc/ssd
|
|
|
|
];
|
|
|
|
|
|
|
|
# Enables ACPI platform profiles
|
2023-10-19 21:54:11 +02:00
|
|
|
boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
|
|
|
|
kernelModules = [ "hp-wmi" ];
|
2023-09-23 23:55:33 +02:00
|
|
|
};
|
2023-09-20 12:32:40 +02:00
|
|
|
|
|
|
|
hardware.nvidia.prime = {
|
|
|
|
amdgpuBusId = "PCI:7:0:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
}
|