1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

common/gpu/intel: update modules to use new options

This commit is contained in:
Gavin John 2024-10-18 14:25:48 -07:00 committed by mergify[bot]
parent 184091915d
commit 86a33c3e32
10 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{ lib, pkgs, ... }:
{
imports = [ ../. ];
hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}

View file

@ -0,0 +1,10 @@
{ lib, pkgs, ... }:
{
imports = [ ../. ];
hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}

View file

@ -0,0 +1,10 @@
{ lib, pkgs, ... }:
{
imports = [ ../. ];
hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}

View file

@ -2,4 +2,6 @@
imports = [ ../. ]; imports = [ ../. ];
boot.kernelParams = [ "i915.enable_guc=2" ]; boot.kernelParams = [ "i915.enable_guc=2" ];
hardware.intelgpu.vaapiDriver = "intel-media-driver";
} }

View file

@ -2,4 +2,6 @@
imports = [ ../. ]; imports = [ ../. ];
boot.kernelParams = [ "i915.enable_guc=2" ]; boot.kernelParams = [ "i915.enable_guc=2" ];
hardware.intelgpu.vaapiDriver = "intel-media-driver";
} }

View file

@ -0,0 +1,10 @@
{ lib, pkgs, ... }:
{
imports = [ ../. ];
hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}

View file

@ -2,4 +2,6 @@
imports = [ ../. ]; imports = [ ../. ];
boot.kernelParams = [ "i915.enable_guc=2" ]; boot.kernelParams = [ "i915.enable_guc=2" ];
hardware.intelgpu.vaapiDriver = "intel-media-driver";
} }

View file

@ -5,4 +5,6 @@
"i915.enable_fbc=1" "i915.enable_fbc=1"
"i915.enable_psr=2" "i915.enable_psr=2"
]; ];
hardware.intelgpu.vaapiDriver = "intel-media-driver";
} }

View file

@ -4,4 +4,6 @@
# Enables RC6, RC6p and RC6pp. # Enables RC6, RC6p and RC6pp.
# Last two are only available on Sandy Bridge CPUs (circa 2011). # Last two are only available on Sandy Bridge CPUs (circa 2011).
boot.kernelParams = [ "i915.enable_rc6=7" ]; boot.kernelParams = [ "i915.enable_rc6=7" ];
hardware.intelgpu.vaapiDriver = "intel-vaapi-driver";
} }

View file

@ -8,5 +8,6 @@
(lib.mkIf (config.hardware.intelgpu.driver == "i915") { (lib.mkIf (config.hardware.intelgpu.driver == "i915") {
boot.kernelParams = [ "i915.enable_guc=3" ]; boot.kernelParams = [ "i915.enable_guc=3" ];
}) })
{ hardware.intelgpu.vaapiDriver = "intel-media-driver"; }
]; ];
} }