Skip to content

Commit 5757ef5

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

File tree

4 files changed

+80
-0
lines changed

4 files changed

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

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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
lib,
3+
pkgs,
4+
...
5+
}: {
6+
imports = [
7+
../../../../common/cpu/amd
8+
../../../../common/gpu/amd
9+
../../../../common/gpu/nvidia
10+
../../../../common/gpu/nvidia/blackwell
11+
../../../../common/gpu/nvidia/prime.nix
12+
../../../../common/pc/laptop
13+
../../../../common/pc/ssd
14+
];
15+
16+
hardware.nvidia = {
17+
modesetting.enable = lib.mkDefault true;
18+
open = lib.mkDefault true;
19+
powerManagement = {
20+
enable = lib.mkDefault true;
21+
finegrained = lib.mkDefault true;
22+
};
23+
prime = {
24+
amdgpuBusId = "PCI:6:0:0"; # 06:00.0 in hexadecimal -> 6:0:0 in decimal
25+
nvidiaBusId = "PCI:1:0:0"; # 01:00.0 in hexadecimal -> 1:0:0 in decimal
26+
};
27+
};
28+
29+
# AMD has better battery life with PPD over TLP:
30+
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
31+
services.power-profiles-daemon.enable = lib.mkDefault true;
32+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
lib,
3+
pkgs,
4+
...
5+
}: {
6+
imports = [
7+
../../../../common/cpu/amd
8+
../../../../common/gpu/amd
9+
../../../../common/gpu/nvidia/disable.nix
10+
../../../../common/pc/laptop
11+
../../../../common/pc/ssd
12+
];
13+
14+
# AMD has better battery life with PPD over TLP:
15+
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
16+
services.power-profiles-daemon.enable = lib.mkDefault true;
17+
}

0 commit comments

Comments
 (0)