Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions common/gpu/nvidia/blackwell/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
lib,
config,
...
}:
let
nvidiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];

# enable the open source drivers if the package supports it
hardware.nvidia.open = lib.mkOverride 990 (nvidiaPackage ? open && nvidiaPackage ? firmware);
}
19 changes: 19 additions & 0 deletions lenovo/loq/15ahp10/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# system information

```
$ nix-info -m
- system: `"x86_64-linux"`
- host os: `Linux 6.12.49, NixOS, 25.11 (Xantusia), 25.11.20250928.e9f00bd`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.28.5`
```

# lspci output
```
$ lspci

01:00.0 VGA compatible controller: NVIDIA Corporation GB206M [GeForce RTX 5060 Max-Q / Mobile] (rev a1)

06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] HawkPoint1 (rev b5)
```
33 changes: 33 additions & 0 deletions lenovo/loq/15ahp10/hybrid/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
pkgs,
...
}:
{
imports = [
../../../../common/cpu/amd
../../../../common/gpu/amd
../../../../common/gpu/nvidia
../../../../common/gpu/nvidia/blackwell
../../../../common/gpu/nvidia/prime.nix
../../../../common/pc/laptop
../../../../common/pc/ssd
];

hardware.nvidia = {
modesetting.enable = lib.mkDefault true;
open = lib.mkDefault true;
powerManagement = {
enable = lib.mkDefault true;
finegrained = lib.mkDefault true;
};
prime = {
amdgpuBusId = "PCI:6:0:0"; # 06:00.0 in hexadecimal -> 6:0:0 in decimal
nvidiaBusId = "PCI:1:0:0"; # 01:00.0 in hexadecimal -> 1:0:0 in decimal
};
};

# AMD has better battery life with PPD over TLP:
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
services.power-profiles-daemon.enable = lib.mkDefault true;
}