Skip to content

Commit edad417

Browse files
committed
add lenovo loq 15ahp10 configuration
1 parent d6645c3 commit edad417

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
lib,
3+
config,
4+
...
5+
}:
6+
let
7+
nvidiaPackage = config.hardware.nvidia.package;
8+
in
9+
{
10+
imports = [ ../. ];
11+
12+
# enable the open source drivers if the package supports it
13+
hardware.nvidia.open = lib.mkOverride 990 (nvidiaPackage ? open && nvidiaPackage ? firmware);
14+
}

lenovo/loq/15ahp10/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# system information
2+
3+
```
4+
$ nix-info -m
5+
- system: `"x86_64-linux"`
6+
- host os: `Linux 6.12.49, NixOS, 25.11 (Xantusia), 25.11.20250928.e9f00bd`
7+
- multi-user?: `yes`
8+
- sandbox: `yes`
9+
- version: `nix-env (Nix) 2.28.5`
10+
```
11+
12+
# lspci output
13+
```
14+
$ lspci
15+
16+
01:00.0 VGA compatible controller: NVIDIA Corporation GB206M [GeForce RTX 5060 Max-Q / Mobile] (rev a1)
17+
18+
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] HawkPoint1 (rev b5)
19+
```
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
lib,
3+
pkgs,
4+
...
5+
}:
6+
{
7+
imports = [
8+
../../../../common/cpu/amd
9+
../../../../common/gpu/amd
10+
../../../../common/gpu/nvidia
11+
../../../../common/gpu/nvidia/blackwell
12+
../../../../common/gpu/nvidia/prime.nix
13+
../../../../common/pc/laptop
14+
../../../../common/pc/ssd
15+
];
16+
17+
hardware.nvidia = {
18+
modesetting.enable = lib.mkDefault true;
19+
open = lib.mkDefault true;
20+
powerManagement = {
21+
enable = lib.mkDefault true;
22+
finegrained = lib.mkDefault true;
23+
};
24+
prime = {
25+
amdgpuBusId = "PCI:6:0:0"; # 06:00.0 in hexadecimal -> 6:0:0 in decimal
26+
nvidiaBusId = "PCI:1:0:0"; # 01:00.0 in hexadecimal -> 1:0:0 in decimal
27+
};
28+
};
29+
30+
# AMD has better battery life with PPD over TLP:
31+
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
32+
services.power-profiles-daemon.enable = lib.mkDefault true;
33+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
lib,
3+
pkgs,
4+
...
5+
}:
6+
{
7+
imports = [
8+
../../../../common/cpu/amd
9+
../../../../common/gpu/amd
10+
../../../../common/gpu/nvidia/disable.nix
11+
../../../../common/pc/laptop
12+
../../../../common/pc/ssd
13+
];
14+
15+
# AMD has better battery life with PPD over TLP:
16+
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
17+
services.power-profiles-daemon.enable = lib.mkDefault true;
18+
}

0 commit comments

Comments
 (0)