nixfiles/profiles/base/hardware.nix
2023-09-18 03:56:58 +01:00

16 lines
379 B
Nix

{
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
in {
hardware.enableRedistributableFirmware = true;
hardware.enableAllFirmware = true;
hardware.cpu.intel.updateMicrocode =
mkIf ("${pkgs.system}" == "x86_64-linux") true;
hardware.cpu.amd.updateMicrocode =
mkIf ("${pkgs.system}" == "x86_64-linux") true;
hardware.wirelessRegulatoryDatabase = true;
}