mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 03:48:12 +09:00
22 lines
386 B
Nix
22 lines
386 B
Nix
{ lib, pkgs, config, ... }:
|
|
with lib; let
|
|
cfg = config.drivers.intel;
|
|
in
|
|
{
|
|
options.drivers.intel = {
|
|
enable = mkEnableOption "Enable Intel Graphics Drivers";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
# OpenGL
|
|
hardware.graphics = {
|
|
extraPackages = with pkgs; [
|
|
intel-media-driver
|
|
vaapiIntel
|
|
vaapiVdpau
|
|
libvdpau-va-gl
|
|
];
|
|
};
|
|
};
|
|
}
|