From fa9ab71249152cc9729b88a959bf990b096a365d Mon Sep 17 00:00:00 2001 From: k Date: Wed, 11 Sep 2024 12:46:35 +0000 Subject: [PATCH] fixed vaapi --- hosts/server/configuration.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index c5bb3f4..5417d52 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix ./service.nix ]; powerManagement.enable = true; system.autoUpgrade.enable = true; + networking.networkmanager.enable = true; nix = { settings.experimental-features = [ "nix-command" "flakes" ]; @@ -27,11 +28,23 @@ home-manager = { users = { "k" = import ./home.nix; }; }; environment.systemPackages = with pkgs; [ - intel-vaapi-driver - intel-compute-runtime - intel-media-driver microcodeIntel ]; + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-compute-runtime + intel-media-driver + vaapiIntel + vaapiVdpau + libvdpau-va-gl + vpl-gpu-rt + ]; + }; + + + services.xserver.videoDrivers = ["intel"]; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions