mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 08:06:22 +01:00
Compare commits
5 commits
4996a18d75
...
0ced18c940
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ced18c940 | ||
|
|
52113c4f5c | ||
|
|
fc4c7c6ec7 | ||
|
|
744975050f | ||
|
|
111d7c3baa |
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
|
@ -7,7 +12,7 @@
|
|||
# However, these 2 services clash when enabled simultaneously.
|
||||
# https://github.com/NixOS/nixos-hardware/issues/260
|
||||
services.tlp.enable = lib.mkDefault (
|
||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
||||
|| !config.services.power-profiles-daemon.enable
|
||||
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
|
||||
&& !(options.services ? tuned && config.services.tuned.enable)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../common/cpu/intel
|
||||
|
|
@ -11,8 +16,8 @@
|
|||
];
|
||||
|
||||
services.tlp.enable = lib.mkDefault (
|
||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
||||
|| !config.services.power-profiles-daemon.enable
|
||||
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
|
||||
&& !(options.services ? tuned && config.services.tuned.enable)
|
||||
);
|
||||
|
||||
# Required for grub to properly display the boot menu.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
|
||||
initrd.availableKernelModules = [
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ in
|
|||
initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"usb-storage"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue