From 142e65955f7bf2ac772fc8eb1d15d6424e6fe8c1 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Tue, 20 Aug 2024 21:27:00 +0200 Subject: [PATCH] finally working config --- modules/system/hardware/cpu/intel.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/system/hardware/cpu/intel.nix b/modules/system/hardware/cpu/intel.nix index e69de29..e2d11f5 100644 --- a/modules/system/hardware/cpu/intel.nix +++ b/modules/system/hardware/cpu/intel.nix @@ -0,0 +1,17 @@ +{ + config, + lib, + pkgs, + ... +}: let + inherit (lib) mkDefault mkIf; + inherit (config.modules.system.video) nvidia amd; +in { + hardware = { + cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware; + hardware.graphics.extraPackages = with pkgs; [ + intel-vaapi-driver + intel-media-driver + ]; + }; +}