mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-27 12:09:45 +01:00
35 lines
877 B
Nix
35 lines
877 B
Nix
|
{ config, lib, ... }:
|
||
|
{
|
||
|
imports = [
|
||
|
# ../../../common/cpu/intel
|
||
|
# ../../../common/gpu/intel/coffee-lake
|
||
|
../../../common/gpu/nvidia/ada-lovelace
|
||
|
../../../common/gpu/nvidia/prime.nix
|
||
|
../../../common/pc/laptop
|
||
|
../../../common/pc/laptop/ssd
|
||
|
];
|
||
|
|
||
|
hardware = {
|
||
|
graphics = {
|
||
|
enable = lib.mkDefault true;
|
||
|
enable32Bit = lib.mkDefault true;
|
||
|
};
|
||
|
nvidia = {
|
||
|
prime = {
|
||
|
# Make sure to use the correct Bus ID values for your system!
|
||
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
||
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
||
|
};
|
||
|
powerManagement = {
|
||
|
enable = lib.mkDefault true;
|
||
|
finegrained = lib.mkIf (config.hardware.nvidia.prime.offload.enable) (lib.mkDefault true);
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services = {
|
||
|
fwupd.enable = lib.mkDefault true;
|
||
|
thermald.enable = lib.mkDefault true;
|
||
|
};
|
||
|
}
|