Compare commits

...

5 commits

Author SHA1 Message Date
adrtivv d5f0ec9c40
Merge bb1bd6d347 into 52113c4f5c 2025-11-07 13:37:27 +09:00
Jörg Thalheim 52113c4f5c
Merge pull request #1668 from concatime/fix/rename-modules
Rename some modules to their correct names
2025-11-06 21:07:11 +00:00
Issam E. Maghni fc4c7c6ec7 meta: rename module to pcie-brcmstb
https://github.com/torvalds/linux/blob/v6.17/drivers/pci/controller/Makefile#L37
2025-11-06 15:05:04 -05:00
Issam E. Maghni 744975050f meta: rename module to usb-storage
https://github.com/torvalds/linux/blob/v6.17/drivers/usb/storage/Kconfig#L23-L24
> To compile this driver as a module, choose M here: the
> module will be called usb-storage.
2025-11-06 15:05:04 -05:00
adrtivv bb1bd6d347 add lenovo loq 15ahp10 configuration 2025-10-21 16:44:25 +05:30
9 changed files with 74 additions and 8 deletions

View 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);
}

View file

@ -15,7 +15,7 @@
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"usb-storage"
"sd_mod"
"rtsx_pci_sdmmc"
];

View file

@ -13,7 +13,7 @@
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"usb-storage"
"sd_mod"
"rtsx_pci_sdmmc"
];

View 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)
```

View 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;
}

View file

@ -14,7 +14,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
"tps6598x"
"xhci_hcd"
"usbcore"
"usb_storage"
"usb-storage"
"uas"
"xhci_plat_hcd"
];
@ -56,7 +56,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
"tps6598x"
"xhci_hcd"
"usbcore"
"usb_storage"
"usb-storage"
"uas"
"xhci_plat_hcd"
];

View file

@ -9,7 +9,7 @@
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
initrd.availableKernelModules = [
"usbhid"
"usb_storage"
"usb-storage"
];
};

View file

@ -31,9 +31,9 @@
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi4;
initrd.availableKernelModules = [
"usbhid"
"usb_storage"
"usb-storage"
"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
]
++ lib.optional config.boot.initrd.network.enable "genet";

View file

@ -16,7 +16,7 @@ in
initrd.availableKernelModules = [
"nvme"
"usbhid"
"usb_storage"
"usb-storage"
];
};