mirror of
https://git.gay/sneexy/nixos.git
synced 2026-01-11 13:13:15 -08:00
16 lines
No EOL
341 B
Nix
16 lines
No EOL
341 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
# opengl and graphics settings
|
|
# https://nixos.wiki/wiki/Accelerated_Video_Playback
|
|
hardware.opengl = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
libvdpau-va-gl
|
|
];
|
|
};
|
|
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
|
|
} |