mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 16:16:21 +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 = [ ../. ];
|
imports = [ ../. ];
|
||||||
|
|
@ -7,7 +12,7 @@
|
||||||
# However, these 2 services clash when enabled simultaneously.
|
# However, these 2 services clash when enabled simultaneously.
|
||||||
# https://github.com/NixOS/nixos-hardware/issues/260
|
# https://github.com/NixOS/nixos-hardware/issues/260
|
||||||
services.tlp.enable = lib.mkDefault (
|
services.tlp.enable = lib.mkDefault (
|
||||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
|
||||||
|| !config.services.power-profiles-daemon.enable
|
&& !(options.services ? tuned && config.services.tuned.enable)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
options,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../common/cpu/intel
|
../../common/cpu/intel
|
||||||
|
|
@ -11,8 +16,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tlp.enable = lib.mkDefault (
|
services.tlp.enable = lib.mkDefault (
|
||||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
|
||||||
|| !config.services.power-profiles-daemon.enable
|
&& !(options.services ? tuned && config.services.tuned.enable)
|
||||||
);
|
);
|
||||||
|
|
||||||
# Required for grub to properly display the boot menu.
|
# Required for grub to properly display the boot menu.
|
||||||
|
|
|
||||||
|
|
@ -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