forked from NixOS/nixos-hardware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
35 lines (33 loc) · 1.04 KB
/
default.nix
File metadata and controls
35 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
lib,
pkgs,
config,
...
}:
{
imports = [
../../common/cpu/amd
../../common/cpu/amd/pstate.nix
../../common/cpu/amd/zenpower.nix
../../common/cpu/amd/raphael/igpu.nix
../../common/gpu/amd
../../common/gpu/nvidia
../../common/gpu/nvidia/ada-lovelace
../../common/gpu/nvidia/prime.nix
../../common/hidpi.nix
../../common/pc/laptop
../../common/pc/ssd
];
# Resolve the issue of sleep mode being awakened by GPIO 6.
# https://nova.gal/blog/%E6%9C%BA%E6%A2%B0%E9%9D%A9%E5%91%BD%E7%BF%BC%E9%BE%99-15Pro-%E8%BF%81%E7%A7%BB-Linux-%E9%81%87%E5%88%B0%E7%9A%84%E4%B8%80%E4%BA%9B%E9%97%AE%E9%A2%98#%E6%97%A0%E6%B3%95%E4%BC%91%E7%9C%A0
# https://lore.kernel.org/all/20221012221028.4817-1-mario.limonciello@amd.com/T/
boot.kernelParams = [ "gpiolib_acpi.ignore_interrupt=AMDI0030:00@6" ];
hardware.nvidia = {
primeBatterySaverSpecialisation = lib.mkDefault true;
modesetting.enable = lib.mkDefault true;
prime = {
amdgpuBusId = "PCI:6:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
}