25 lines
404 B
Nix
25 lines
404 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
is_x86 = "${pkgs.system}" == "x86_64-linux";
|
|
in {
|
|
hardware = {
|
|
enableAllFirmware = true;
|
|
enableRedistributableFirmware = true;
|
|
wirelessRegulatoryDatabase = true;
|
|
|
|
ksm.enable = true;
|
|
|
|
i2c.enable = true;
|
|
|
|
cpu = {
|
|
intel.updateMicrocode = mkIf is_x86 true;
|
|
amd.updateMicrocode = mkIf is_x86 true;
|
|
};
|
|
};
|
|
}
|