nixos-config/modules/hardware/intel.nix

20 lines
501 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2021-08-31 16:01:29 +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
}