16 lines
473 B
Nix
16 lines
473 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
config = lib.mkIf (pkgs.system == "x86_64-linux") {
|
|
boot.initrd.availableKernelModules = [
|
|
"xhci_pci" "ahci" "sd_mod" "sdhci_pci" # nixos-generate-config defaults
|
|
"usb_storage" # rpi needed this to boot from usb storage, i think.
|
|
"nvme" # to boot from nvme devices
|
|
# efi_pstore evivars
|
|
];
|
|
|
|
hardware.cpu.amd.updateMicrocode = true; # desktop
|
|
hardware.cpu.intel.updateMicrocode = true; # laptop
|
|
};
|
|
}
|