diff --git a/common/gpu/intel/bay-trail/default.nix b/common/gpu/intel/bay-trail/default.nix new file mode 100644 index 000000000..0b19cb782 --- /dev/null +++ b/common/gpu/intel/bay-trail/default.nix @@ -0,0 +1,10 @@ +{ lib, pkgs, ... }: + +{ + imports = [ ../. ]; + + hardware.intelgpu = { + vaapiDriver = "intel-vaapi-driver"; + enableHybridCodec = true; + }; +} diff --git a/common/gpu/intel/braswell/default.nix b/common/gpu/intel/braswell/default.nix new file mode 100644 index 000000000..0b19cb782 --- /dev/null +++ b/common/gpu/intel/braswell/default.nix @@ -0,0 +1,10 @@ +{ lib, pkgs, ... }: + +{ + imports = [ ../. ]; + + hardware.intelgpu = { + vaapiDriver = "intel-vaapi-driver"; + enableHybridCodec = true; + }; +} diff --git a/common/gpu/intel/broadwell/default.nix b/common/gpu/intel/broadwell/default.nix new file mode 100644 index 000000000..0b19cb782 --- /dev/null +++ b/common/gpu/intel/broadwell/default.nix @@ -0,0 +1,10 @@ +{ lib, pkgs, ... }: + +{ + imports = [ ../. ]; + + hardware.intelgpu = { + vaapiDriver = "intel-vaapi-driver"; + enableHybridCodec = true; + }; +} diff --git a/common/gpu/intel/comet-lake/default.nix b/common/gpu/intel/comet-lake/default.nix index c4526f48f..43ed1c467 100644 --- a/common/gpu/intel/comet-lake/default.nix +++ b/common/gpu/intel/comet-lake/default.nix @@ -2,4 +2,6 @@ imports = [ ../. ]; boot.kernelParams = [ "i915.enable_guc=2" ]; + + hardware.intelgpu.vaapiDriver = "intel-media-driver"; } diff --git a/common/gpu/intel/elkhart-lake/default.nix b/common/gpu/intel/elkhart-lake/default.nix index c4526f48f..43ed1c467 100644 --- a/common/gpu/intel/elkhart-lake/default.nix +++ b/common/gpu/intel/elkhart-lake/default.nix @@ -2,4 +2,6 @@ imports = [ ../. ]; boot.kernelParams = [ "i915.enable_guc=2" ]; + + hardware.intelgpu.vaapiDriver = "intel-media-driver"; } diff --git a/common/gpu/intel/haswell/default.nix b/common/gpu/intel/haswell/default.nix new file mode 100644 index 000000000..0b19cb782 --- /dev/null +++ b/common/gpu/intel/haswell/default.nix @@ -0,0 +1,10 @@ +{ lib, pkgs, ... }: + +{ + imports = [ ../. ]; + + hardware.intelgpu = { + vaapiDriver = "intel-vaapi-driver"; + enableHybridCodec = true; + }; +} diff --git a/common/gpu/intel/jasper-lake/default.nix b/common/gpu/intel/jasper-lake/default.nix index c4526f48f..43ed1c467 100644 --- a/common/gpu/intel/jasper-lake/default.nix +++ b/common/gpu/intel/jasper-lake/default.nix @@ -2,4 +2,6 @@ imports = [ ../. ]; boot.kernelParams = [ "i915.enable_guc=2" ]; + + hardware.intelgpu.vaapiDriver = "intel-media-driver"; } diff --git a/common/gpu/intel/kaby-lake/default.nix b/common/gpu/intel/kaby-lake/default.nix index e6a2d1ce8..dab57600a 100644 --- a/common/gpu/intel/kaby-lake/default.nix +++ b/common/gpu/intel/kaby-lake/default.nix @@ -5,4 +5,6 @@ "i915.enable_fbc=1" "i915.enable_psr=2" ]; + + hardware.intelgpu.vaapiDriver = "intel-media-driver"; } diff --git a/common/gpu/intel/sandy-bridge/default.nix b/common/gpu/intel/sandy-bridge/default.nix index 47d6b9a87..51a6ba360 100644 --- a/common/gpu/intel/sandy-bridge/default.nix +++ b/common/gpu/intel/sandy-bridge/default.nix @@ -4,4 +4,6 @@ # Enables RC6, RC6p and RC6pp. # Last two are only available on Sandy Bridge CPUs (circa 2011). boot.kernelParams = [ "i915.enable_rc6=7" ]; + + hardware.intelgpu.vaapiDriver = "intel-vaapi-driver"; } diff --git a/common/gpu/intel/tiger-lake/default.nix b/common/gpu/intel/tiger-lake/default.nix index 86afdccc5..f641ad399 100644 --- a/common/gpu/intel/tiger-lake/default.nix +++ b/common/gpu/intel/tiger-lake/default.nix @@ -8,5 +8,6 @@ (lib.mkIf (config.hardware.intelgpu.driver == "i915") { boot.kernelParams = [ "i915.enable_guc=3" ]; }) + { hardware.intelgpu.vaapiDriver = "intel-media-driver"; } ]; }