fix opengl
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 12m3s

This commit is contained in:
Ingolf Wagner 2024-08-17 19:01:35 +02:00
parent ee4d9bcc4f
commit 8f6fa5939b
Signed by: palo
GPG key ID: 76BF5F1928B9618B
5 changed files with 42 additions and 9 deletions

View file

@ -3,6 +3,7 @@
imports = [
./disko-config.nix
./hardware-configuration.nix
./graphics.nix
];
boot.loader.efi.canTouchEfiVariables = true;
@ -23,4 +24,6 @@
ACTION=="add|change", KERNEL=="sd[a-z]*[0-9]*|mmcblk[0-9]*p[0-9]*|nvme[0-9]*n[0-9]*p[0-9]*", ENV{ID_FS_TYPE}=="zfs_member", ATTR{../queue/scheduler}="none"
'';
}

View file

@ -0,0 +1,19 @@
# https://wiki.nixos.org/wiki/Accelerated_Video_Playback
{ pkgs, ... }:
{
hardware.graphics.enable = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
#vaapi-intel-hybrid
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965
#vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
#vaapiVdpau
#libvdpau-va-gl
];
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ];
environment.sessionVariables = { LIBVA_DRIVER_NAME = "i965"; }; # Optionally, set the environment variable
}

View file

@ -69,15 +69,6 @@
networking.hostName = "chungus";
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
# nix-shell -p speedtest_cli --run speedtest
#configuration.fireqos = {
# enable = false;

View file

@ -3,6 +3,7 @@
imports = [
./disko-config.nix
./hardware-configuration.nix
./graphics.nix
];
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -0,0 +1,19 @@
# https://wiki.nixos.org/wiki/Accelerated_Video_Playback
{ pkgs, ... }:
{
hardware.graphics.enable = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
#vaapi-intel-hybrid
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965
#vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
#vaapiVdpau
#libvdpau-va-gl
];
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ];
environment.sessionVariables = { LIBVA_DRIVER_NAME = "i965"; }; # Optionally, set the environment variable
}