mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 01:48:50 +08:00
37 lines
609 B
Nix
37 lines
609 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) mkDefault;
|
|
in
|
|
{
|
|
imports = [
|
|
../../../common/cpu/amd
|
|
../../../common/cpu/amd/pstate.nix
|
|
|
|
# iGPU
|
|
../../../common/gpu/amd
|
|
|
|
# dGPU
|
|
../../../common/gpu/nvidia/prime.nix
|
|
../../../common/gpu/nvidia/ampere
|
|
|
|
../../../common/pc/laptop
|
|
../../../common/pc/ssd
|
|
|
|
../../battery.nix
|
|
];
|
|
|
|
hardware.nvidia = {
|
|
dynamicBoost.enable = mkDefault true;
|
|
|
|
powerManagement = {
|
|
enable = mkDefault true;
|
|
finegrained = mkDefault true;
|
|
};
|
|
|
|
prime = {
|
|
amdgpuBusId = "PCI:1:0:0";
|
|
nvidiaBusId = "PCI:101:0:0";
|
|
};
|
|
};
|
|
}
|