diff --git a/common/gpu/intel/bay-trail/default.nix b/common/gpu/intel/bay-trail/default.nix new file mode 100644 index 0000000..0b19cb7 --- /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 0000000..0b19cb7 --- /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 0000000..0b19cb7 --- /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 c4526f4..43ed1c4 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 c4526f4..43ed1c4 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 0000000..0b19cb7 --- /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 c4526f4..43ed1c4 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 e6a2d1c..dab5760 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 47d6b9a..51a6ba3 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 86afdcc..f641ad3 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"; } ]; }