nichts/modules/system/hardware/intel.mod.nix

27 lines
560 B
Nix
Raw Normal View History

2024-08-20 21:27:00 +02:00
{
config,
lib,
pkgs,
...
}:
let
inherit (lib.modules) mkDefault mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.modules.system.hardware.intel;
in
{
options.modules.system.hardware.intel.enable = mkEnableOption "Intel Hardware";
config = mkIf cfg.enable {
hardware = {
cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
graphics.extraPackages = builtins.attrValues {
inherit (pkgs)
intel-vaapi-driver
intel-media-driver
;
};
};
2024-08-20 21:27:00 +02:00
};
}