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

34 lines
695 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;
extraPackages = [
pkgs.intel-media-driver
pkgs.unstable.vpl-gpu-rt
2024-09-08 15:58:56 +00:00
];
extraPackages32 = with pkgs.driversi686Linux; [
intel-media-driver
pkgs.unstable.vpl-gpu-rt
2024-09-08 15:58:56 +00:00
];
};
};
}