Rupert: Add working video decoding HW acceleration
This commit is contained in:
		
							parent
							
								
									d6f2c33a09
								
							
						
					
					
						commit
						f678ad57f8
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -21,6 +21,24 @@ in
 | 
			
		|||
    boot.loader.efi.canTouchEfiVariables = true;
 | 
			
		||||
    boot.kernelParams = [ "acpi=force" "reboot=bios" ];
 | 
			
		||||
 | 
			
		||||
    boot.initrd.kernelModules = [ "i915" ];
 | 
			
		||||
    nixpkgs.config.packageOverrides = pkgs: {
 | 
			
		||||
        vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
 | 
			
		||||
    };
 | 
			
		||||
    hardware.opengl = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        extraPackages = with pkgs; [
 | 
			
		||||
            (if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
 | 
			
		||||
            libvdpau-va-gl
 | 
			
		||||
            vaapiVdpau
 | 
			
		||||
            # intel-media-driver
 | 
			
		||||
        ];
 | 
			
		||||
    };
 | 
			
		||||
    environment.variables = {
 | 
			
		||||
        VDPAU_DRIVER = "va_gl";
 | 
			
		||||
    };
 | 
			
		||||
    hardware.cpu.intel.updateMicrocode = true;
 | 
			
		||||
 | 
			
		||||
    networking.hostName = "Rupert";
 | 
			
		||||
 | 
			
		||||
    users.users = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue