1
0
Fork 0
nix-configuration/modules/system/gpu/intel.nix

34 lines
673 B
Nix
Raw Normal View History

# Enables Intel GPU support.
# https://wiki.nixos.org/wiki/Intel_Graphics
# https://nixos.org/manual/nixos/stable/#sec-x11--graphics-cards-intel
{
pkgs,
config,
lib,
...
}:
let
cfg = config.aux.system.gpu.intel;
in
{
options = {
2024-09-08 15:58:56 +00:00
aux.system.gpu.intel.enable = lib.mkEnableOption "Enables Intel GPU support.";
};
config = lib.mkIf cfg.enable {
services.xserver.videoDrivers = [ "intel" ];
hardware.graphics = {
enable = true;
2024-10-24 21:03:02 +00:00
extraPackages = with pkgs; [
intel-media-driver
vpl-gpu-rt
2024-09-08 15:58:56 +00:00
];
extraPackages32 = with pkgs.driversi686Linux; [
intel-media-driver
vpl-gpu-rt
2024-09-08 15:58:56 +00:00
];
};
};
}