mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 16:16:21 +01:00
Compare commits
5 commits
19b5b0322c
...
d5f0ec9c40
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5f0ec9c40 | ||
|
|
52113c4f5c | ||
|
|
fc4c7c6ec7 | ||
|
|
744975050f | ||
|
|
bb1bd6d347 |
14
common/gpu/nvidia/blackwell/default.nix
Normal file
14
common/gpu/nvidia/blackwell/default.nix
Normal file
|
|
@ -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);
|
||||||
|
}
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"ahci"
|
"ahci"
|
||||||
"usb_storage"
|
"usb-storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
"rtsx_pci_sdmmc"
|
"rtsx_pci_sdmmc"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"ahci"
|
"ahci"
|
||||||
"nvme"
|
"nvme"
|
||||||
"usb_storage"
|
"usb-storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
"rtsx_pci_sdmmc"
|
"rtsx_pci_sdmmc"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
19
lenovo/loq/15ahp10/README.md
Normal file
19
lenovo/loq/15ahp10/README.md
Normal file
|
|
@ -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
lenovo/loq/15ahp10/hybrid/default.nix
Normal file
33
lenovo/loq/15ahp10/hybrid/default.nix
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
@ -14,7 +14,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
|
||||||
"tps6598x"
|
"tps6598x"
|
||||||
"xhci_hcd"
|
"xhci_hcd"
|
||||||
"usbcore"
|
"usbcore"
|
||||||
"usb_storage"
|
"usb-storage"
|
||||||
"uas"
|
"uas"
|
||||||
"xhci_plat_hcd"
|
"xhci_plat_hcd"
|
||||||
];
|
];
|
||||||
|
|
@ -56,7 +56,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
|
||||||
"tps6598x"
|
"tps6598x"
|
||||||
"xhci_hcd"
|
"xhci_hcd"
|
||||||
"usbcore"
|
"usbcore"
|
||||||
"usb_storage"
|
"usb-storage"
|
||||||
"uas"
|
"uas"
|
||||||
"xhci_plat_hcd"
|
"xhci_plat_hcd"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
|
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
|
||||||
initrd.availableKernelModules = [
|
initrd.availableKernelModules = [
|
||||||
"usbhid"
|
"usbhid"
|
||||||
"usb_storage"
|
"usb-storage"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,9 @@
|
||||||
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi4;
|
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi4;
|
||||||
initrd.availableKernelModules = [
|
initrd.availableKernelModules = [
|
||||||
"usbhid"
|
"usbhid"
|
||||||
"usb_storage"
|
"usb-storage"
|
||||||
"vc4"
|
"vc4"
|
||||||
"pcie_brcmstb" # required for the pcie bus to work
|
"pcie-brcmstb" # required for the pcie bus to work
|
||||||
"reset-raspberrypi" # required for vl805 firmware to load
|
"reset-raspberrypi" # required for vl805 firmware to load
|
||||||
]
|
]
|
||||||
++ lib.optional config.boot.initrd.network.enable "genet";
|
++ lib.optional config.boot.initrd.network.enable "genet";
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ in
|
||||||
initrd.availableKernelModules = [
|
initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
"usbhid"
|
"usbhid"
|
||||||
"usb_storage"
|
"usb-storage"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue