2021-11-01 20:33:21 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-08-31 16:01:29 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
let
|
|
|
|
cfg = config.ptw.hardware.intel;
|
|
|
|
in {
|
|
|
|
options.ptw.hardware.intel = {
|
|
|
|
enable = lib.mkEnableOption "Enable support for Intel CPUs";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
hardware = {
|
|
|
|
cpu.intel.updateMicrocode = true;
|
|
|
|
# NOTE: Assuming each Intel CPU has integrated graphics
|
|
|
|
opengl.extraPackages = with pkgs; [ vaapiIntel intel-media-driver ];
|
|
|
|
};
|
|
|
|
# TODO: Remove?
|
|
|
|
services.xserver.videoDrivers = [ "modesetting" "fbdev" ];
|
2021-08-31 16:15:06 +00:00
|
|
|
};
|
2021-08-31 16:01:29 +00:00
|
|
|
}
|